Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - How to handle the reisize event of mainframe
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to handle the reisize event of mainframe

 Post Reply Post Reply
Author
Message
vijaymahajan View Drop Down
Groupie
Groupie
Avatar

Joined: 16 June 2008
Status: Offline
Points: 92
Post Options Post Options   Thanks (0) Thanks(0)   Quote vijaymahajan Quote  Post ReplyReply Direct Link To This Post Topic: How to handle the reisize event of mainframe
    Posted: 23 June 2008 at 2:43am
Hello,
I have created one custom control and placed it on a ribbon bar.
In this customcotrol i have taken a dialog and onwhich i am placing a picture control.
now i want to reisize this custom control when mainframe window is minimized or maximized?
How can i do that?where should i handle this functionality?
please guide me.
thanks in Advance.
 
Thanks and regards,
Vijay
Back to Top
rdhd View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 August 2007
Location: United States
Status: Offline
Points: 867
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdhd Quote  Post ReplyReply Direct Link To This Post Posted: 24 June 2008 at 12:02pm
The frame window will be sent a WM_SIZE message. You can add a handler to your message map or if you have a raw WindowProc implementation, add a case for WM_SIZE.
 
Forward the message to the parent and when that call returns, you can add any additional handling you want.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.