Print Page | Close Window

Problem OnReSize? Codejock Calendar Control

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=10356
Printed Date: 13 May 2025 at 7:29pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Problem OnReSize? Codejock Calendar Control
Posted By: prashant
Subject: Problem OnReSize? Codejock Calendar Control
Date Posted: 25 April 2008 at 4:59am
Oleg,

I have implemented one MDI application, which contains following things

1) One frame window.
2) Calendar View on Frame window (Left pane of splitter)
3) Date Picker view on Frame window (Right pane of splitter)
4) Placing CXTPToolBar over Calendar View.

I have gone through your few post replies, so added following lines of code in each class's PreCreateWindow function

BOOL NewFrame::PreCreateWindow(CREATESTRUCT& cs)
{
   ///!<Codejock Calendar >
   cs.style |= WS_CLIPCHILDREN|WS_CLIPSIBLINGS;
}

Now I am dynamically creating one dialog and placing it over CalendarView. It's getting created without any trouble but when I try to resize my new frame my dialog flickers and sometimes gets disappeared.

Please suggest me some workaround.

Thanks in advance.



Replies:
Posted By: prashant
Date Posted: 28 April 2008 at 2:59am
Hi,

I am still waiting for your valuable feedback.

Meanwhile I tried to set following property to my splitter class
cs.style |= WS_CLIPCHILDREN|WS_CLIPSIBLINGS;

But it's giving me crash on moving splitter.




Posted By: mgampi
Date Posted: 28 April 2008 at 3:49am
Hi;
 
does your dialog have WS_POPUP style set?


-------------
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022


Posted By: prashant
Date Posted: 28 April 2008 at 4:39am
Hi,
Dialog properties are set as follows:

WS_CLIPSIBLINGS | WS_CHILD | WS_BORDER | WS_CAPTION | DS_LOCALEDIT | WS_SYSMENU

I tried with property "WS_POPUP", it's getting created on Main Frame and not on Calendar View.


Posted By: Oleg
Date Posted: 28 April 2008 at 6:12am

Hello,

Send project to mailto:support@codejock.com - support@codejock.com to test.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: prashant
Date Posted: 28 April 2008 at 8:07am
Oleg,

Thanks for reply, I am afraid I can't send you the project.
I already shown you class hierarchy.

Can you please help with that. If necessary I can provide you more details about the implementation.

Thanks in advance.


Posted By: Oleg
Date Posted: 28 April 2008 at 9:02am

Hello,

I can't help you because I don't know your code. Copy your project, remove not important parts from code and send to test. It will be much faster than somebody from forum will try to create same application you have to just reproduce your problem.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: prashant
Date Posted: 29 April 2008 at 5:22am
Oleg,

As per your advise I mailed replica of my project (test.zip) to codejock support team. ( mailto:support@codejock.com - support@codejock.com)

On Calendar View you can see one small push button, you can observe button flickering on On sizing calendar view.

If you wait for some time without doing anything, button will disappear.

My project is almost similar to implementation in test.zip

Waiting for your valuable feedback.



Posted By: Oleg
Date Posted: 29 April 2008 at 8:50am
Hello,
 
Add 2 things:
 
1.
 
in OnInitDialog add
 
   GetCalendarCtrl().ModifyStyle(0, WS_CLIPSIBLINGS | WS_CLIPSIBLINGS);
2. in OnSize add
 
   if (m_hwndG1B1)
   {
    ::SetWindowPos(m_hwndG1B1, HWND_TOP, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
   }
(and replace hwndG1B1 to member variable m_hwndG1B1)
 


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: prashant
Date Posted: 29 April 2008 at 9:20am
It's party time

Thanks a lot for your support,

GetCalendarCtrl().ModifyStyle(0, WS_CLIPSIBLINGS | WS_CLIPSIBLINGS);

Above line resolved the issue.

Best Regards,
Prashant.





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