Click here to Skip to main content
15,894,328 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Screensaver with GDI+ Pin
RolandSaller8-Jan-03 23:21
RolandSaller8-Jan-03 23:21 
GeneralUnicode problem Pin
7-Jan-03 21:24
suss7-Jan-03 21:24 
Generalhi... Pin
:_Rocket_:7-Jan-03 21:12
:_Rocket_:7-Jan-03 21:12 
GeneralRe: hi... Pin
MVH7-Jan-03 22:52
MVH7-Jan-03 22:52 
General2 questions Pin
TOMTEFAR7-Jan-03 20:35
TOMTEFAR7-Jan-03 20:35 
GeneralRe: 2 questions Pin
Andreas Saurwein8-Jan-03 0:49
Andreas Saurwein8-Jan-03 0:49 
GeneralRe: 2 questions Pin
TOMTEFAR8-Jan-03 4:09
TOMTEFAR8-Jan-03 4:09 
QuestionCDateTimeCtrl Focus Problem - Any workaround?? Pin
cool_jay7-Jan-03 20:22
cool_jay7-Jan-03 20:22 
Hi,

When I clicked on CDateTimeCtrl drop down arrow it shows
me Month calendar, when I do select date or cancels on
calendar control, focus gets dissappear. Now if I press
tab the focus goes to next subsequent control and when
come back to the same CDateTimeCtrl control th'r tab, it
doesn't get selected.

Anybody of you even encounter this, or do anybody of know how to resolve this?
I tried to the code like
void CMyFormView::OnCloseupDate(NMHDR* pNMHDR, LRESULT* pResult)
{
TRACE(_T("StartDate DateTimePicker\n"));
CDateTimeCtrl *dt = (CDateTimeCtrl *)GetDlgItem(IDC_START_DATE);
if(dt->m_hWnd != NULL)
{
::PostMessage(dt->m_hWnd, WM_KEYDOWN, VK_RIGHT, 0);
}
/*if(pNMHDR->hwndFrom != NULL)
{
::PostMessage(pNMHDR->hwndFrom, WM_KEYDOWN, VK_RIGHT, 0);
}*/
*pRes = 0;
}

But this doesn't solve my problem. This logic fails sometimes. So
anybody of you can explain how to resolve this problem?

I had submitted the bug to Microsoft.
But I want the workaround. With the following logic
(sending message in message queue by PostMessage() shown
in below posted message) I'm able to select the date
inside the CDateTimeCtrl. But sometimes this logic fails.
The reason for that is my application messge queue is big,
and if the focus goes to Tree Control and there I'm
handling PreTranslateMessage() where it crashes the
application. Or sometimes the date in other CDateTimeCtrl
gets selected (even though I'm using pNMHDR->hwndFrom
handle of the CDateTimeCtrl)
So does anybody of you know any workaround for selecting
the date inside the CDateTimeCtrol after embeded Month
contol has colsed?

Thanks & Regards,
- Vijay


God is Great
Generalexecuting batch and shortcuts Pin
r i s h a b h s7-Jan-03 19:28
r i s h a b h s7-Jan-03 19:28 
GeneralHelp me pleeeeeeeeeeeeeeeeeeeeeeeeeaze!!!!!!! Pin
r i s h a b h s7-Jan-03 22:57
r i s h a b h s7-Jan-03 22:57 
GeneralRe: Help me pleeeeeeeeeeeeeeeeeeeeeeeeeaze!!!!!!! Pin
Rickard Andersson207-Jan-03 23:42
Rickard Andersson207-Jan-03 23:42 
GeneralRe: Help me pleeeeeeeeeeeeeeeeeeeeeeeeeaze!!!!!!! Pin
xxhimanshu8-Jan-03 0:06
xxhimanshu8-Jan-03 0:06 
GeneralRe: Help me pleeeeeeeeeeeeeeeeeeeeeeeeeaze!!!!!!! Pin
Rickard Andersson208-Jan-03 1:29
Rickard Andersson208-Jan-03 1:29 
GeneralRe: executing batch and shortcuts Pin
Ted Ferenc8-Jan-03 0:30
Ted Ferenc8-Jan-03 0:30 
GeneralHTTP Response Header Pin
Nilesh K.7-Jan-03 18:56
Nilesh K.7-Jan-03 18:56 
GeneralRe: HTTP Response Header Pin
sonshiro7-Jan-03 19:26
sonshiro7-Jan-03 19:26 
GeneralRe: HTTP Response Header Pin
Simon.W7-Jan-03 19:36
Simon.W7-Jan-03 19:36 
QuestionHow to use winsock2 Pin
boby127-Jan-03 18:53
boby127-Jan-03 18:53 
AnswerRe: How to use winsock2 Pin
Simon.W7-Jan-03 19:41
Simon.W7-Jan-03 19:41 
Questionprojects that I can contribute towards? Pin
tiglic_acid7-Jan-03 17:53
tiglic_acid7-Jan-03 17:53 
AnswerRe: projects that I can contribute towards? Pin
Jim Crafton7-Jan-03 18:05
Jim Crafton7-Jan-03 18:05 
QuestionMenu ??? Pin
dktu7-Jan-03 17:39
dktu7-Jan-03 17:39 
AnswerRe: Menu ??? Pin
l a u r e n7-Jan-03 17:57
l a u r e n7-Jan-03 17:57 
AnswerRe: Menu ??? Pin
Simon.W7-Jan-03 19:49
Simon.W7-Jan-03 19:49 
GeneralNeed help with dlls Pin
VanHlebar7-Jan-03 16:41
VanHlebar7-Jan-03 16:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.