I''ve had a good look through the infinate pages of wisdom (google) and the MSDN and can''t seem to find how to resize a Win32 Dialogs controls.
My particular problem is that I have created a dialog and display it on screen, when resizing the window I need the picture box control to resize with the screen to a certain size.
What function can I use to do this or does this have to be done in the DialogProc and how?
Thanks,
----
Mike
Portfolio: Http://members.iinet.net.au/~slyons
Team AI: Http://members.iinet.net.au/~slyons/teamai
Resizing win32 dialog controls
A control is like any other window, you resize it by giving it a new position.
Something like this should make you smile all happy like:
SetWindowPos(hControl, 0x00, Left, Top, Right, Bottom, SWP_NOZORDER);
Something like this should make you smile all happy like:
SetWindowPos(hControl, 0x00, Left, Top, Right, Bottom, SWP_NOZORDER);
I can''t believe that actually was the answer! I would hate to think that I would still be searching now if I hadn''t of asked.
Thanks grozzler!
----
Mike
Portfolio: Http://members.iinet.net.au/~slyons
Team AI: Http://members.iinet.net.au/~slyons/teamai
Thanks grozzler!
----
Mike
Portfolio: Http://members.iinet.net.au/~slyons
Team AI: Http://members.iinet.net.au/~slyons/teamai
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement