Resizing win32 dialog controls

Started by
2 comments, last by Mike737 20 years, 1 month ago
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
Advertisement
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);
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

Well thats what we''re here for =)

This topic is closed to new replies.

Advertisement