Subject: windres class strings and event options
From: [email-masked] (Tim Daley)

17 Mar 1998 14:43:13 -0800
Message-ID: <[email-masked]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: [email-masked]

The following is abstracted from the dialer sample in the Microsoft SDK
samples. The bugs are commented and have a copy of the error statement
inserted with modifications that seem to work correctly. A reference URL
is also provided. Are there workarounds, such as where are the numeric
classes defined corresponding to "Static" and "Button"

1) Class strings are not handled (at least in CLASS and CONTROL
statements)

2) Options are not allowed in ACCELERATOR Event definitions.

#include "windows.h"

#define IDI_DIALER                      1
#define IDA_DIALER                      117
#define IDM_MENU                        118
#define IDD_DRECTSEPARATOR              224
#define IDD_DSPEEDDIAL1                 214

#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#pragma code_page(1252)
#endif //_WIN32

IDD_DIALER DIALOG PRELOAD DISCARDABLE  50, 50, 194, 168
STYLE DS_3DLOOK | WS_MINIMIZEBOX | WS_CAPTION | WS_SYSMENU
CAPTION "Phone Dialer"
MENU IDM_MENU
// CLASS statement does not handle string class
// Ref:
http://premium.microsoft.com/msdn/library/sdkdoc/pdapp/rc_896c.htm
CLASS 0
CLASS "DialerClass"
FONT 8, "MS Shell Dlg"
BEGIN
// CONTROL statement does not handle string class
// Ref:
http://premium.microsoft.com/msdn/library/sdkdoc/pdapp/rc_3sj0.htm
    CONTROL         "",IDD_DRECTSEPARATOR,0,SS_ETCHEDHORZ |
                    WS_DISABLED,0,0,194,1
    CONTROL         "",IDD_DRECTSEPARATOR,"Static",SS_ETCHEDHORZ |
                    WS_DISABLED,0,0,194,1
END

IDA_DIALER ACCELERATORS DISCARDABLE
BEGIN
// EVENT description does not handle options
// ref:
http://premium.microsoft.com/msdn/library/sdkdoc/pdapp/rc_442t.htm
    "1",            IDD_DSPEEDDIAL1,        VIRTKEY
    "1",            IDD_DSPEEDDIAL1,        VIRTKEY, ALT, NOINVERT
END

--
Tim Daley
San Jose, California
[email-masked]

-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".