CXTPDatePickerControl OnButtonClick |
Post Reply |
Author | ||
tjohnson
Newbie Joined: 20 July 2005 Location: United States Status: Offline Points: 7 |
Post Options
Thanks(0)
Posted: 20 July 2005 at 9:32am |
|
I'm trying to add functionality to a button added to my CXTPDatePickerControl via the AddButton method. From what I can tell, I should be able to override the OnButtonClick method to do this. What I have works, more or less, except that I'm trying to use this control as it is used in the provided sample, that is as part of a CComboBox and popup window. The normal Today and None buttons, after they are clicked, cause the call to GoModal to return. When my custom button is clicked, the actions I've coded execute (i.e. the date selection changes), but the GoModal call doesn't return. I'm sure there is some call or message sending I'm missing, but I don't know what it is. Can you tell me what I'm missing? Here is the code I have so far in my OnButtonClick method (be gentle, I'm new to MFC and C++ in general):
Edited by tjohnson |
||
~Travis
|
||
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
|
Hi,
There seems to be 2 ways to break modal loop in your case: 1.
2.
-- WBR, Serge |
||
tjohnson
Newbie Joined: 20 July 2005 Location: United States Status: Offline Points: 7 |
Post Options
Thanks(0)
|
|
I tried Option 1 and it did the trick. Thanks!
|
||
~Travis
|
||
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 |