Click to See Complete Forum and Search --> : determine dialog resource size before CreateWindowEx


AviLaviad
September 21st, 2005, 07:30 AM
hi,
in the CreateWindowEx parameter i need to insert width & height.
i want to get the size of the dialog resource itself and not hardcoded the size in the code.

how can i get the size from the resource?
Avi.

golanshahar
September 21st, 2005, 07:35 AM
if you want to display the dialog you have in resources why you are not calling ::CreateDialog (...) (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/dialogboxes/dialogboxreference/dialogboxfunctions/createdialog.asp) give the IDD_XXXX?
So you will have the dialog in the same size of the resource?

Cheers