Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Problem OnReSize? Codejock Calendar Control
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problem OnReSize? Codejock Calendar Control

 Post Reply Post Reply
Author
Message
prashant View Drop Down
Senior Member
Senior Member
Avatar

Joined: 19 February 2007
Location: India
Status: Offline
Points: 165
Post Options Post Options   Thanks (0) Thanks(0)   Quote prashant Quote  Post ReplyReply Direct Link To This Post Topic: Problem OnReSize? Codejock Calendar Control
    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.
Back to Top
prashant View Drop Down
Senior Member
Senior Member
Avatar

Joined: 19 February 2007
Location: India
Status: Offline
Points: 165
Post Options Post Options   Thanks (0) Thanks(0)   Quote prashant Quote  Post ReplyReply Direct Link To This Post 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.


Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
prashant View Drop Down
Senior Member
Senior Member
Avatar

Joined: 19 February 2007
Location: India
Status: Offline
Points: 165
Post Options Post Options   Thanks (0) Thanks(0)   Quote prashant Quote  Post ReplyReply Direct Link To This Post 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.
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: 28 April 2008 at 6:12am

Hello,

Send project to support@codejock.com to test.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
prashant View Drop Down
Senior Member
Senior Member
Avatar

Joined: 19 February 2007
Location: India
Status: Offline
Points: 165
Post Options Post Options   Thanks (0) Thanks(0)   Quote prashant Quote  Post ReplyReply Direct Link To This Post 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.
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: 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
Back to Top
prashant View Drop Down
Senior Member
Senior Member
Avatar

Joined: 19 February 2007
Location: India
Status: Offline
Points: 165
Post Options Post Options   Thanks (0) Thanks(0)   Quote prashant Quote  Post ReplyReply Direct Link To This Post Posted: 29 April 2008 at 5:22am
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.

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: 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
Back to Top
prashant View Drop Down
Senior Member
Senior Member
Avatar

Joined: 19 February 2007
Location: India
Status: Offline
Points: 165
Post Options Post Options   Thanks (0) Thanks(0)   Quote prashant Quote  Post ReplyReply Direct Link To This Post 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.


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.