Dialog Position
-
Okay, I have a dialog, made with the resource editor, im using it as my main window, and im using Pure Win32, no MFC!, and i want this dialog to be positioned by the system like a normal window would be if you had created the window with CreateWindow() and specified CW_USEDEFUALT for the X paramater, but i dont know how to get my window to do this. and please, if you dont know exactly what i am asking then dont bother trying to answer
-
Okay, I have a dialog, made with the resource editor, im using it as my main window, and im using Pure Win32, no MFC!, and i want this dialog to be positioned by the system like a normal window would be if you had created the window with CreateWindow() and specified CW_USEDEFUALT for the X paramater, but i dont know how to get my window to do this. and please, if you dont know exactly what i am asking then dont bother trying to answer
Position the dialog to your liking in response to the
WM_INITDIALOG
message. Use:SetWindowPos(..., CW_USEDEFAULT, CW_USEDEFAULT, ...);
for the
x
andy
parameters.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
-
Position the dialog to your liking in response to the
WM_INITDIALOG
message. Use:SetWindowPos(..., CW_USEDEFAULT, CW_USEDEFAULT, ...);
for the
x
andy
parameters.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
MoveWindow(x,y,cx,xy)
-
Position the dialog to your liking in response to the
WM_INITDIALOG
message. Use:SetWindowPos(..., CW_USEDEFAULT, CW_USEDEFAULT, ...);
for the
x
andy
parameters.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
-
Does
MoveWindow()
produce the same result? I'm not sure if either supportCW_USEDEFAULT
. You might want to explain this requirement further. Perhaps there's a better alternative.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown