Resize Window

free web hosting
Open Discussion > CONTRIBUTE > Computers > Programming Languages > C/C++ Programming

Resize Window

kvarnerexpress
Is there some special trick used in vc++ to have the controls automatically move and resize when the main dialog is resized?

For example when I create a new default dialog with the resource editor, it puts and OK and Cancel button in the top right corner of the dialog. When you resize the dialog in design view they move with it so they stay in the same relative position, but when i run it, and then resize the form they stay in the same spot and the border moves farther from them.

If theres a simple built in trick for it that is good, if its done through code and the resize message, then i wont really worry about it.

Reply

SystemWisdom
You should check out 'Docking', it requires no code at all, just proper placement of controls within docked panels.

Docking allows you to 'Float' controls to the Top, Bottom, Left, Right or Fill, and when used together, you could have a control float to the Top-Right of your application while it resizes...

Docking is usually done by adding a panel control (or some other containment control) to your form, and then specify the Dock position in the Properties Window of VC++ for that control.

I hope that helps!

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Recent Queries:-
  1. javascript resize window .hta - 6.02 hr back. (1)
  2. vc resize form - 12.83 hr back. (1)
  3. cancel resize window javascript - 13.18 hr back. (1)
  4. how to move resize window using vc - 21.71 hr back. (1)
  5. html resize window - 66.47 hr back. (1)
  6. resize window with php - 89.67 hr back. (1)
  7. how to resize the docked panel - 119.85 hr back. (1)
  8. resizing docking boxes javascript - 173.21 hr back. (1)
  9. resize hta - 197.50 hr back. (1)
  10. resizing window php - 206.13 hr back. (1)
  11. resize a hta - 221.63 hr back. (1)
  12. hta resize window jscript - 224.11 hr back. (1)
  13. xp resize window - 224.17 hr back. (1)
  14. hta resize window - 37.61 hr back. (4)
Similar Topics

Keywords : resize


    Looking for resize, window

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for resize, window

*MORE FROM TRAP17.COM*
advertisement



Resize Window



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE