Woidl
April 21st, 2005, 10:56 AM
Hi!
I have the problem after creating a simple Dialog (containing some Buttons, one static image (picture control) and some static text fields using DialogBoxIndirectParamW(), that it has different sizes on other PCs.
So, the image keeps it's size, but all other dialog objets and the dialog itself changes (always decreases) their size, cutting into the image's area which looks disgusting.
So, the dialog section in the .rc file looks like:
DLG_MESSAGE DIALOGEX 0, 0, 234, 94
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION |
WS_SYSMENU
CAPTION "MyCaption"
FONT 8, "MS Shell Dlg", 400, 0, 0x0
BEGIN
DEFPUSHBUTTON "YES",IDMSG_YES,60,76,50,14,NOT WS_VISIBLE
DEFPUSHBUTTON "NO",IDMSG_NO,124,76,50,14,NOT WS_VISIBLE
DEFPUSHBUTTON "Cancel",IDMSG_CANCEL,180,76,48,14,NOT WS_VISIBLE
CONTROL 105,ID_STATIC,"Static",SS_BITMAP,4,4,70,70
DEFPUSHBUTTON "RETRY",IDMSG_RETRY,4,76,168,14,NOT WS_VISIBLE
DEFPUSHBUTTON "OK",IDMSG_OK,4,76,224,14,NOT WS_VISIBLE
LTEXT "",IDC_MSGTXTSMALL,88,4,140,68
EDITTEXT IDC_MSGTXT,88,4,140,68,ES_MULTILINE | ES_AUTOVSCROLL |
ES_READONLY | WS_VSCROLL
END
Don't bother the hidden buttons, they'll be activated as needed in DlgProc.
All I wanna have is that all elements and the dialog itself ALWAYS KEEPS it's size, as I give them in the studio's editor.
Why the **** is this so difficult???
Already tried all possible settings, like REAL_SIZE_IMAGE true/false, RIGHT_JUSTIFY, ... but nothing happened.
Please help, thnx to everyone can!
Best Regards Woidl
I have the problem after creating a simple Dialog (containing some Buttons, one static image (picture control) and some static text fields using DialogBoxIndirectParamW(), that it has different sizes on other PCs.
So, the image keeps it's size, but all other dialog objets and the dialog itself changes (always decreases) their size, cutting into the image's area which looks disgusting.
So, the dialog section in the .rc file looks like:
DLG_MESSAGE DIALOGEX 0, 0, 234, 94
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION |
WS_SYSMENU
CAPTION "MyCaption"
FONT 8, "MS Shell Dlg", 400, 0, 0x0
BEGIN
DEFPUSHBUTTON "YES",IDMSG_YES,60,76,50,14,NOT WS_VISIBLE
DEFPUSHBUTTON "NO",IDMSG_NO,124,76,50,14,NOT WS_VISIBLE
DEFPUSHBUTTON "Cancel",IDMSG_CANCEL,180,76,48,14,NOT WS_VISIBLE
CONTROL 105,ID_STATIC,"Static",SS_BITMAP,4,4,70,70
DEFPUSHBUTTON "RETRY",IDMSG_RETRY,4,76,168,14,NOT WS_VISIBLE
DEFPUSHBUTTON "OK",IDMSG_OK,4,76,224,14,NOT WS_VISIBLE
LTEXT "",IDC_MSGTXTSMALL,88,4,140,68
EDITTEXT IDC_MSGTXT,88,4,140,68,ES_MULTILINE | ES_AUTOVSCROLL |
ES_READONLY | WS_VSCROLL
END
Don't bother the hidden buttons, they'll be activated as needed in DlgProc.
All I wanna have is that all elements and the dialog itself ALWAYS KEEPS it's size, as I give them in the studio's editor.
Why the **** is this so difficult???
Already tried all possible settings, like REAL_SIZE_IMAGE true/false, RIGHT_JUSTIFY, ... but nothing happened.
Please help, thnx to everyone can!
Best Regards Woidl