Whenever I include the following line in my rc file, the apoplication
compiles fine but exits immediately. Any suggestions for a newbie?
CONTROL "Slider1",ID_SPEED,"msctls_trackbar32", TBS_AUTOTICKS |
TBS_TOP | WS_TABSTOP,13,62,165,22
(Yes, I did define ID_SPEEDin resources.h; Maybe I need to import
something?)
Thanks in advance. (If this is OT, please point me to a more appropriate
forum/list/etc)
#Full RC FILE
#include "resource.h"
DLG_CONFIG DIALOG DISCARDABLE 0, 0, 190, 220
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Bouncy Screensaver"
FONT 8, "MS Sans Serif"
BEGIN
// config box and controls
GROUPBOX "Options",ID_GROUP_OPTIONS,7,7,175,95
//CONTROL "", ID_SPEED, "msctls_trackbar32", 1409351777, 24, 24, 124, 24
CONTROL "Slider1",ID_SPEED,"msctls_trackbar32", TBS_AUTOTICKS |
TBS_TOP | WS_TABSTOP,13,62,165,22
//about box and controls
DEFPUSHBUTTON "&OK",ID_OK,40,200,50,14
PUSHBUTTON "&Cancel",ID_CANCEL,100,200,50,14
GROUPBOX "About",ID_GROUP_ABOUT,7,107,175,82
LTEXT "A windows screensaver of a bouncy ball. \r\n\r\nBased
on code by Brook Miles from an animation example distributed with the
Dev-C++ IDE under GPL. \r\n\r\n2003 - Chris Arrowood",
IDC_STATIC,16,118,144,63
END
|