Jump to content
Tuts 4 You

Help on Resorce Files


serhat

Recommended Posts

Posted

Hallo

I'm coding with RadASM Program. Not so good . I have now a Problem with RC-file...

If I create a dialog

Normally the RC-file content should be such!!

100 DIALOGEX 6, 6, 207, 96
STYLE DS_CENTER | WS_MINIMIZEBOX | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Reference Sans Serif"
BEGIN
CONTROL "IDC_BTN", 101, BUTTON, BS_OWNERDRAW | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 125,24,62,15
CONTROL "OK", 102, BUTTON, BS_OWNERDRAW | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 125,41,62,15
CONTROL "Cancel", 103, BUTTON, BS_OWNERDRAW | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 125,59,62,15
CONTROL "IDC_GRP", 104, BUTTON, BS_GROUPBOX | WS_CHILD | WS_VISIBLE, 117,12,78,69
END

But RadASM RC files created like so

100 DIALOGEX 6, 6, 207, 96
FONT 8,"MS Sans Serif",0,0
STYLE 0x90000800
EXSTYLE 0x00000008
BEGIN
CONTROL "IDC_BTN"Button",0x54010000,125,24,62,15,0x00000201
CONTROL "OK"Button",0x54010000,125,41,62,15,0x00000201
CONTROL "Cancel",btnCikis,"Button",0x54010000,117,12,78,69,0x00000201
END

I do not want to compile it.. If there is a setting could not find any, Please Help Me ,Because it can sometimes be wrong encodings

Sorry my bad English, Thanx for all comment

Posted (edited)

Contrast, under

#define IDD_DLG1 1000

#define IDC_BTN1 1001

#define IDC_BTN2 1002

IDD_DLG1 DIALOGEX 10,10,193,100

CAPTION "IDD_DLG"

FONT 8,"MS Sans Serif",0,0,0

STYLE WS_VISIBLE|WS_OVERLAPPEDWINDOW

BEGIN

CONTROL "Cancel",IDC_BTN1,"Button",WS_CHILD|WS_VISIBLE|WS_TABSTOP,33,69,48,12

CONTROL "OK",IDC_BTN2,"Button",WS_CHILD|WS_VISIBLE|WS_TABSTOP,114,72,51,9

END

Edited by by:70

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...