Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sizing an irregular form

Status
Not open for further replies.

dr486

Programmer
Jan 9, 2002
105
AU
Hi,

Ive created an irregular form using CreateRoundRectRgn...I am now trying to resize this form with no success.

Any ideas would be appreciated.

dr
 
If you can move that form while it has no title bar means that you allready resolved the use of MouseDown / MouseMove events to do this.
My idea is to use the same approuch for resizing. What I'm saying: Place a control (you name it) somewere on the form (preferably on the bottom right "corner :)". On the MouseMove event of that control, beside moving the control, you can resize the form itself in order to keep the control in the same position relativly to the corner of the form.
Is should work.
But still, why do you want to resize an irregular form? It is not soo hard but verry annoing to recalculate all the regions (if you have more then one) and combine them again. And if you hawe a background picture, hmm...

Hope I've been helpful,
Bogdan Muresan.
 
Me again!
On a second thought, disregard the control. You can just check on Form_MouseDown event if the mouse is on a predefined area (say in the bottom right "corner") and resize the form.
And yes, if it is just a rounded corner window, it is fesable to resize it and it would be a nice window too.

Hope I've been helpful,
Bogdan Muresan.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top