Click here to Skip to main content
16,011,120 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: SendMessage and ListBox Pin
Tomasz Sowinski11-Mar-02 4:16
Tomasz Sowinski11-Mar-02 4:16 
GeneralRe: SendMessage and ListBox Pin
User 665811-Mar-02 4:21
User 665811-Mar-02 4:21 
GeneralRe: SendMessage and ListBox Pin
Tomasz Sowinski11-Mar-02 4:23
Tomasz Sowinski11-Mar-02 4:23 
GeneralRe: SendMessage and ListBox Pin
User 665811-Mar-02 4:29
User 665811-Mar-02 4:29 
GeneralRe: SendMessage and ListBox Pin
Tomasz Sowinski11-Mar-02 4:37
Tomasz Sowinski11-Mar-02 4:37 
GeneralRe: THANKS A LOT!!!! Pin
User 665811-Mar-02 4:46
User 665811-Mar-02 4:46 
GeneralRe: THANKS A LOT!!!! Pin
Tomasz Sowinski11-Mar-02 4:56
Tomasz Sowinski11-Mar-02 4:56 
GeneralRe: SendMessage and ListBox Pin
Tomasz Sowinski11-Mar-02 4:50
Tomasz Sowinski11-Mar-02 4:50 
Gregor S. wrote:
you might take a look at my comment "Just found strange behavior"

It looks like synchronization problem. Your 2nd FindWindow call finds the main window launched by 1st ShellExecute call, then sends the message. Message is processed OK and item is selected.

It seems that launched app needs some time before it can accept messages - WaitInputIdle ensures that. Use ShellExecuteEx to avoid problems with mutliple target windows - you'll get the process handle. You'll also have to abandon FindWindow - if two apps were launched, the find criteria are too weak. EnumWindows and GetWindowThreadProcessId are the way to go.

Tomasz Sowinski -- http://www.shooltz.com
General2D Array Handling in VC++ Pin
G.V.Bhaskar11-Mar-02 1:44
G.V.Bhaskar11-Mar-02 1:44 
GeneralRe: 2D Array Handling in VC++ Pin
Tomasz Sowinski11-Mar-02 3:44
Tomasz Sowinski11-Mar-02 3:44 
GeneralRe: 2D Array Handling in VC++ Pin
Joaquín M López Muñoz11-Mar-02 3:58
Joaquín M López Muñoz11-Mar-02 3:58 
QuestionWhy RichEdit20A scroll the contents of the view?? Pin
wtl11-Mar-02 1:29
wtl11-Mar-02 1:29 
GeneralExporting to Excel... Pin
Mauricio Ritter11-Mar-02 1:25
Mauricio Ritter11-Mar-02 1:25 
GeneralRe: Exporting to Excel... Pin
[James Pullicino]11-Mar-02 2:58
[James Pullicino]11-Mar-02 2:58 
GeneralRe: Exporting to Excel... Pin
Carlos Antollini11-Mar-02 3:44
Carlos Antollini11-Mar-02 3:44 
GeneralRe: Exporting to Excel... Pin
Mauricio Ritter11-Mar-02 4:19
Mauricio Ritter11-Mar-02 4:19 
GeneralRe: Exporting to Excel... Pin
Carlos Antollini11-Mar-02 4:33
Carlos Antollini11-Mar-02 4:33 
GeneralRe: Exporting to Excel... Pin
Mauricio Ritter11-Mar-02 4:50
Mauricio Ritter11-Mar-02 4:50 
GeneralRe: Exporting to Excel... Pin
Carlos Antollini11-Mar-02 4:55
Carlos Antollini11-Mar-02 4:55 
GeneralRe: Exporting to Excel... Pin
Mauricio Ritter11-Mar-02 5:04
Mauricio Ritter11-Mar-02 5:04 
GeneralRe: Exporting to Excel... Pin
Carlos Antollini11-Mar-02 5:22
Carlos Antollini11-Mar-02 5:22 
GeneralRe: Exporting to Excel... Pin
perlmunger18-May-02 16:50
perlmunger18-May-02 16:50 
Generalcommunication with LPT1 Pin
Kshav10-Mar-02 22:45
Kshav10-Mar-02 22:45 
GeneralRe: communication with LPT1 Pin
Joaquín M López Muñoz10-Mar-02 22:53
Joaquín M López Muñoz10-Mar-02 22:53 
Generalclass initialize problem Pin
10-Mar-02 22:24
suss10-Mar-02 22:24 

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.