Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Skin Framework
  New Posts New Posts RSS Feed - Problem for Resizing and Repainting Window
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problem for Resizing and Repainting Window

 Post Reply Post Reply
Author
Message
racuca View Drop Down
Newbie
Newbie


Joined: 16 July 2009
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote racuca Quote  Post ReplyReply Direct Link To This Post Topic: Problem for Resizing and Repainting Window
    Posted: 16 July 2009 at 3:17am
Hi...I have one trouble for Resizing window and painting it.

I use Codejock 11.2 and VC++6.0.

Please Follow me....
I open the pane sample of Codejock samples and execute,

1 Step: make a command for resizing window size. for example, make ID_RESIZEWINSIZE  in view submenu.
2 Step: Generate Message Map for Command and Function. for example, OnResizeWinSize()
3 Step: Add a code Resizing Window Size using MoveWindow Function.
BOOL CMainFrame::OnResizeWinSize()
{
   CRect rc;
   GetWindowRect(&rc);
   rc.right -= 100;
   rc.bottom -= 100;
   MoveWindow(&rc, TRUE);
}

4 Step: Execute it
5 Step : Maximize Window
6 Step : Execute a ID_RESIZEWINSIZE menu.
 
Then, you can see the framework the border is not painted.
 
 
Did I miss some function? How can I get the normal window ? This is the window which can not resize any more.
Please Let me know...
 
Thanks in advance.
 
 
 
 
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 17 July 2009 at 1:38am
Hi,
 
You have to set window to normal state first.  See ShowWindow function.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
racuca View Drop Down
Newbie
Newbie


Joined: 16 July 2009
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote racuca Quote  Post ReplyReply Direct Link To This Post Posted: 18 July 2009 at 5:51am
 
Thank you very much.
 
It works well.
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.219 seconds.