Print Page | Close Window

Problem for Resizing and Repainting Window

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=14753
Printed Date: 22 November 2024 at 7:12pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Problem for Resizing and Repainting Window
Posted By: racuca
Subject: Problem for Resizing and Repainting Window
Date 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.
 
 
 
 



Replies:
Posted By: Oleg
Date 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


Posted By: racuca
Date Posted: 18 July 2009 at 5:51am
 
Thank you very much.
 
It works well.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net