Click here to Skip to main content
15,912,021 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: ASCII Conversion Pin
Naveen25-May-06 2:32
Naveen25-May-06 2:32 
GeneralRe: ASCII Conversion Pin
satsumatable25-May-06 2:48
satsumatable25-May-06 2:48 
GeneralRe: ASCII Conversion Pin
NiceNaidu25-May-06 2:58
NiceNaidu25-May-06 2:58 
GeneralRe: ASCII Conversion Pin
Naveen25-May-06 3:16
Naveen25-May-06 3:16 
GeneralRe: ASCII Conversion Pin
satsumatable25-May-06 3:35
satsumatable25-May-06 3:35 
QuestionMSMQ 3.0 Pin
Sarath C25-May-06 1:24
Sarath C25-May-06 1:24 
AnswerRe: MSMQ 3.0 Pin
anwer_skk25-May-06 22:23
anwer_skk25-May-06 22:23 
QuestionWindow activation Pin
KKumarTG25-May-06 0:55
KKumarTG25-May-06 0:55 
Hi,

I have a program, which has a timer and dialog.
Program purpose is to set the window on top most and active in a specified interval.

Problem is that the dialog is getting on the top most. That is ok.
But not getting activated ( No focus ).

Please see the code:

void CTestSetWPosDlg::OnTimer( UINT nIDEvent )
{
CDialog::OnTimer( nIDEvent );

SYSTEMTIME stSystemTime;
GetLocalTime( &stSystemTime );
CString csTime;
csTime.Format( "%d:%d", stSystemTime.wMinute, stSystemTime.wSecond );
SetWindowText( csTime.operator LPCTSTR());
SetWindowPos( &wndTopMost, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_ASYNCWINDOWPOS );
SetActiveWindow();
}

Krishnakumar
AnswerRe: Window activation Pin
shilianghui225-May-06 1:07
shilianghui225-May-06 1:07 
GeneralRe: Window activation Pin
KKumarTG25-May-06 1:17
KKumarTG25-May-06 1:17 
GeneralRe: Window activation Pin
shilianghui225-May-06 1:26
shilianghui225-May-06 1:26 
GeneralRe: Window activation Pin
shilianghui225-May-06 1:28
shilianghui225-May-06 1:28 
GeneralRe: Window activation Pin
KKumarTG25-May-06 1:43
KKumarTG25-May-06 1:43 
GeneralRe: Window activation Pin
shilianghui225-May-06 2:02
shilianghui225-May-06 2:02 
GeneralRe: Window activation Pin
KKumarTG25-May-06 2:58
KKumarTG25-May-06 2:58 
GeneralRe: Window activation Pin
Nibu babu thomas25-May-06 17:53
Nibu babu thomas25-May-06 17:53 
AnswerRe: Window activation Pin
anwer_skk26-May-06 4:06
anwer_skk26-May-06 4:06 
QuestionAnimateWindow Pin
racing5725-May-06 0:27
racing5725-May-06 0:27 
AnswerRe: AnimateWindow Pin
Nibu babu thomas25-May-06 0:39
Nibu babu thomas25-May-06 0:39 
GeneralRe: AnimateWindow Pin
racing5725-May-06 0:43
racing5725-May-06 0:43 
QuestionVisual C++.Net with Win2K problem [modified] Pin
sandeep12098025-May-06 0:22
sandeep12098025-May-06 0:22 
AnswerRe: Visual C++.Net with Win2K problem [modified] Pin
Nibu babu thomas25-May-06 18:00
Nibu babu thomas25-May-06 18:00 
GeneralRe: IGrabberSample In VC 7.0 Pin
sandeep12098025-May-06 1:42
sandeep12098025-May-06 1:42 
GeneralRe: IGrabberSample In VC 7.0 Pin
elimn8or25-May-06 1:49
elimn8or25-May-06 1:49 
GeneralRe: IGrabberSample In VC 7.0 Pin
Nibu babu thomas25-May-06 1:57
Nibu babu thomas25-May-06 1:57 

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.