Click here to Skip to main content
15,890,609 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Can I use select instead Sleep? Pin
Rajesh R Subramanian14-Aug-09 5:45
professionalRajesh R Subramanian14-Aug-09 5:45 
GeneralRe: Can I use select instead Sleep? Pin
harold aptroot14-Aug-09 5:47
harold aptroot14-Aug-09 5:47 
GeneralRe: Can I use select instead Sleep? Pin
Rajesh R Subramanian14-Aug-09 8:46
professionalRajesh R Subramanian14-Aug-09 8:46 
GeneralRe: Can I use select instead Sleep? Pin
harold aptroot14-Aug-09 9:00
harold aptroot14-Aug-09 9:00 
GeneralRe: Can I use select instead Sleep? Pin
Rajesh R Subramanian14-Aug-09 9:40
professionalRajesh R Subramanian14-Aug-09 9:40 
GeneralRe: Can I use select instead Sleep? Pin
harold aptroot14-Aug-09 10:03
harold aptroot14-Aug-09 10:03 
AnswerRe: Can I use select instead Sleep? Pin
hanlei000000000915-Aug-09 3:41
hanlei000000000915-Aug-09 3:41 
QuestionGrab Key board focus Pin
aks.13-Aug-09 18:51
aks.13-Aug-09 18:51 
hi,

I have 2 applications A & B. They are started independently.
Application B can show/hide Application A.( Using named events and threads)
Scenario 1:
A is displayed.
A is hide( SW_HIDE ) by itself by clicking a button on A.
A is showed from B.
::SetWindowPos( this->m_hWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE );
::SetWindowPos( this->m_hWnd, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE );
SetActiveWindow();
SetFocus();
GetDlgItem( IDC_EDIT1)->SetFocus();
In this case A is displayed and has the Key board focus.

Scenario 2:
A is displayed.
A is hide from B.
A is showed from B.
In this case A is displayed and has the cursor is blinking on the edit control of A. But it doesn't have the Key board focus. i.e. if I press the tab to change the focus, application B's tab order is changing.

Could you please let me know how can I get the key board focus on above case( Scenario2). I know that AttchThreadInput can solve this issue. But I need to know whether any alternate solution for this.

aks

AnswerRe: Grab Key board focus Pin
«_Superman_»13-Aug-09 18:58
professional«_Superman_»13-Aug-09 18:58 
QuestionSMTP: all are not working? Pin
includeh1013-Aug-09 15:03
includeh1013-Aug-09 15:03 
AnswerRe: SMTP: all are not working? Pin
zhu_lin13-Aug-09 15:46
zhu_lin13-Aug-09 15:46 
AnswerRe: SMTP: all are not working? Pin
Bacon Ultimate Cheeseburger13-Aug-09 15:48
Bacon Ultimate Cheeseburger13-Aug-09 15:48 
GeneralRe: SMTP: all are not working? Pin
includeh1013-Aug-09 16:08
includeh1013-Aug-09 16:08 
GeneralRe: SMTP: all are not working? Pin
Bacon Ultimate Cheeseburger13-Aug-09 16:22
Bacon Ultimate Cheeseburger13-Aug-09 16:22 
AnswerRe: SMTP: all are not working? [modified] Pin
includeh1013-Aug-09 16:19
includeh1013-Aug-09 16:19 
GeneralRe: SMTP: all are not working? Pin
Bacon Ultimate Cheeseburger13-Aug-09 16:35
Bacon Ultimate Cheeseburger13-Aug-09 16:35 
GeneralRe: SMTP: all are not working? Pin
Bacon Ultimate Cheeseburger13-Aug-09 18:45
Bacon Ultimate Cheeseburger13-Aug-09 18:45 
QuestionIntercept a WM message into a C++ class Pin
428813-Aug-09 13:10
428813-Aug-09 13:10 
AnswerRe: Intercept a WM message into a C++ class Pin
Baltoro13-Aug-09 14:55
Baltoro13-Aug-09 14:55 
AnswerRe: Intercept a WM message into a C++ class Pin
KarstenK13-Aug-09 21:13
mveKarstenK13-Aug-09 21:13 
GeneralRe: Intercept a WM message into a C++ class Pin
428814-Aug-09 4:49
428814-Aug-09 4:49 
GeneralRe: Intercept a WM message into a C++ class Pin
KarstenK16-Aug-09 20:33
mveKarstenK16-Aug-09 20:33 
GeneralRe: Intercept a WM message into a C++ class Pin
428817-Aug-09 4:49
428817-Aug-09 4:49 
AnswerRe: Intercept a WM message into a C++ class Pin
Bacon Ultimate Cheeseburger14-Aug-09 13:07
Bacon Ultimate Cheeseburger14-Aug-09 13:07 
QuestionCan I control MyApp browser extension button order in "Internet Explorer" default toolbar after installation? Pin
neocoin13-Aug-09 8:16
neocoin13-Aug-09 8:16 

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.