![]() |
Problem OnReSize? Codejock Calendar Control |
Post Reply ![]() |
Author | |
prashant ![]() Senior Member ![]() ![]() Joined: 19 February 2007 Location: India Status: Offline Points: 165 |
![]() ![]() ![]() ![]() ![]() 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. |
|
![]() |
|
prashant ![]() Senior Member ![]() ![]() Joined: 19 February 2007 Location: India Status: Offline Points: 165 |
![]() ![]() ![]() ![]() ![]() |
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. |
|
![]() |
|
mgampi ![]() Senior Member ![]() ![]() Joined: 14 July 2003 Status: Offline Points: 1201 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
prashant ![]() Senior Member ![]() ![]() Joined: 19 February 2007 Location: India Status: Offline Points: 165 |
![]() ![]() ![]() ![]() ![]() |
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. |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hello, Send project to support@codejock.com to test.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
prashant ![]() Senior Member ![]() ![]() Joined: 19 February 2007 Location: India Status: Offline Points: 165 |
![]() ![]() ![]() ![]() ![]() |
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. |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
prashant ![]() Senior Member ![]() ![]() Joined: 19 February 2007 Location: India Status: Offline Points: 165 |
![]() ![]() ![]() ![]() ![]() |
Oleg,
As per your advise I mailed replica of my project (test.zip) to codejock support team. (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. |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
prashant ![]() Senior Member ![]() ![]() Joined: 19 February 2007 Location: India Status: Offline Points: 165 |
![]() ![]() ![]() ![]() ![]() |
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. |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |