- Joined
- Jun 10, 2008
- Messages
- 117
- Reaction score
- 0
ok i am getting a few problems that i need help with. One isn't really a problem but more of an explanation and another is an error.
First:
Bloodshed Dev-C++
-----------------------
When i am creating a button with this program and i put this into the Primary.rc file:
I am getting a Syntax Error for Style DS_SETFONT.....
for the STYLE DS_SETFONT...
part.
Second:
---------------
When i use this code in Dev-C++:
It just sits there and does nothing when i compile. i want to do something with it.
I don't know how to make that button do anything.
Please help!!!!!!!!!
Help Greatly appreciated.
-Alex
AKA
Black Nemo
First:
Bloodshed Dev-C++
-----------------------
When i am creating a button with this program and i put this into the Primary.rc file:
Code:
/* -- Dialog Box: Primary -- */
IDD_PRIMARY_DLG DIALOGEX 0, 0, 263, 159
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_VISIBLE |
WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_APPWINDOW
CAPTION "Calling One Dialog Box From Another"
FONT 8, "MS Shell Dlg"
BEGIN
PUSHBUTTON "Close",IDCANCEL,204,12,50,16
PUSHBUTTON "Second",IDC_SECOND_BTN,12,12,50,14
END
/* -- Dialog Box: Second -- */
IDD_SECOND_DLG DIALOGEX 0, 0, 186, 90
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION |
WS_SYSMENU
CAPTION "Second"
FONT 8, "MS Shell Dlg"
BEGIN
DEFPUSHBUTTON "OK",IDOK,129,7,50,14
PUSHBUTTON "Cancel",IDCANCEL,129,24,50,14
END
for the STYLE DS_SETFONT...
part.
Second:
---------------
When i use this code in Dev-C++:
Code:
hButton = CreateWindowEx( // creates a button
NULL,
"Button",
"Wont Work",
WS_BORDER | WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON,
50, 15,
**** 30,
hwnd, NULL,
hInstance,
NULL);
I don't know how to make that button do anything.
Please help!!!!!!!!!
Help Greatly appreciated.
-Alex
AKA
Black Nemo