PropertySheet shows to small

55 views
Skip to first unread message

Alfred Hilscher

unread,
Jan 17, 2005, 8:42:49 AM1/17/05
to
Hi,

I try to add a propertysheet to my application, but when it is
displayed, the size is smaller then the template I use for the page. So
the dialog is "cut" (at the left side and at the bottom). What can be
wrong there?

psp.dwSize = sizeof(PROPSHEETPAGE);
psp.dwFlags = PSP_DEFAULT;
psp.hInstance = g_hinst;
psp.pszTemplate = MAKEINTRESOURCE(1000);
psp.pfnDlgProc = TestProc;
psp.lparam = 0;
psp.psfCallback = NULL;

psh.dwSize = sizeof(PROPSHEETHEADER);
psh.dwFlags = PSH_PROPSHEETPAGE;
psh.hwndParent = hwndOwner;
psh.hInstance = g_hinst;
psh.nPages = 1;
psh.nStartPage = 0;
psh.ppsp = (LPCPROPSHEETPAGE) &psp;

PropertySheet (&psh);

1000 DIALOG 6, 18, 204, 135
STYLE DS_3DLOOK | WS_VISIBLE | WS_CAPTION
CAPTION "Values "
FONT 10,"Times New Roman"
BEGIN
GROUPBOX "Realpart", 1001, 4, 7, 196, 35
GROUPBOX "Imaginepart", 1002, 4, 51, 196, 35
EDITTEXT ValueDlgReMin, 25, 20, 70, 12, ES_AUTOHSCROLL
LTEXT "Min", 1004, 7, 22, 18, 8
EDITTEXT ValueDlgReMax, 122, 21, 70, 12, ES_AUTOHSCROLL
LTEXT "Max", 1006, 100, 23, 20, 8
EDITTEXT ValueDlgImMin, 26, 65, 70, 12, ES_AUTOHSCROLL
LTEXT "Min", 1008, 8, 67, 17, 8
EDITTEXT ValueDlgImMax, 123, 66, 70, 12, ES_AUTOHSCROLL
LTEXT "Max", 1010, 101, 68, 20, 8
DEFPUSHBUTTON "Paint", ValueDlgPaint, 30, 105, 40, 14
PUSHBUTTON "Cancel", ValueDlgCancel, 119, 107, 40, 14
END


-----------------------------------------------------
To send me mail, please replace "Spam" by "Jedermann"
-----------------------------------------------------

Reply all
Reply to author
Forward
0 new messages