Click here to Skip to main content
15,923,557 members
Home / Discussions / C#
   

C#

 
GeneralRe: Detecting dependent DLLs Pin
leppie17-Nov-03 6:42
leppie17-Nov-03 6:42 
GeneralRe: Detecting dependent DLLs Pin
Heath Stewart17-Nov-03 7:15
protectorHeath Stewart17-Nov-03 7:15 
GeneralSending CTRL-F6 using PostMessage or SendMessage Pin
ccanales00117-Nov-03 6:02
ccanales00117-Nov-03 6:02 
GeneralRe: Sending CTRL-F6 using PostMessage or SendMessage Pin
Heath Stewart17-Nov-03 6:24
protectorHeath Stewart17-Nov-03 6:24 
GeneralRe: Sending CTRL-F6 using PostMessage or SendMessage Pin
ccanales00117-Nov-03 8:28
ccanales00117-Nov-03 8:28 
GeneralRe: Sending CTRL-F6 using PostMessage or SendMessage Pin
Heath Stewart17-Nov-03 10:05
protectorHeath Stewart17-Nov-03 10:05 
GeneralRe: Sending CTRL-F6 using PostMessage or SendMessage Pin
J. Dunlap17-Nov-03 10:22
J. Dunlap17-Nov-03 10:22 
GeneralRe: Sending CTRL-F6 using PostMessage or SendMessage Pin
ccanales00118-Nov-03 5:14
ccanales00118-Nov-03 5:14 
IntPtr doc1 = FindWindow("OpusApp", "Document1 - Microsoft Word");
IntPtr doc2 = FindWindow("OpusApp", "Document2 - Microsoft Word");
return correct window handles verified with Spy++. Spy++ message logging also shows the Post for the following but no document window action is initiated.
PostMessage(doc1, WM_KEYDOWN, VK_CONTROL, 0)
PostMessage(doc1, WM_KEYDOWN, VK_F6, 0)
PostMessage(doc1, WM_KEYUP, VK_CONTROL, 0)
PostMessage(doc1, WM_KEYUP, VK_F6, 0)

If I manually invoke CTRL-F6 to switch between documents, Spy++ doesn't show KEYDOWN/UP commands but does show WM_ACTIVATE, WM_ACTIVATEAPP among other window refresh commands. Changed my code to invoke the following in a loop and the document windows toggle as if using CTRL-F6. It works.
PostMessage(doc1, WM_ACTIVATE, 0x1, 0x056C)
PostMessage(doc2, WM_ACTIVATE, 0x1, 0x056C)

It seems manually depressing CTRL-F6 is handled by a process or other window handle, which send WM_ACTIVATE to the window handles I'm referencing. I'll continue to use WM_ACTIVATE unless something else is suggested.

casey
GeneralRe: Sending CTRL-F6 using PostMessage or SendMessage Pin
Heath Stewart18-Nov-03 6:25
protectorHeath Stewart18-Nov-03 6:25 
GeneralGenerating a pseudo file from in memory data Pin
fuad.abdallah17-Nov-03 5:57
fuad.abdallah17-Nov-03 5:57 
GeneralRe: Generating a pseudo file from in memory data Pin
Heath Stewart17-Nov-03 6:16
protectorHeath Stewart17-Nov-03 6:16 
GeneralRe: Generating a pseudo file from in memory data Pin
Daniel Turini18-Nov-03 0:44
Daniel Turini18-Nov-03 0:44 
GeneralDetermining dependent DLLs Pin
Arash Sabet17-Nov-03 5:39
Arash Sabet17-Nov-03 5:39 
GeneralRe: Determining dependent DLLs Pin
Heath Stewart17-Nov-03 6:09
protectorHeath Stewart17-Nov-03 6:09 
GeneralRe: Determining dependent DLLs Pin
Arash Sabet17-Nov-03 6:12
Arash Sabet17-Nov-03 6:12 
GeneralRe: Determining dependent DLLs Pin
Heath Stewart17-Nov-03 7:07
protectorHeath Stewart17-Nov-03 7:07 
GeneralTop most form Pin
Judah Gabriel Himango17-Nov-03 5:29
sponsorJudah Gabriel Himango17-Nov-03 5:29 
GeneralRe: Top most form Pin
Heath Stewart17-Nov-03 6:06
protectorHeath Stewart17-Nov-03 6:06 
GeneralRe: Top most form Pin
Judah Gabriel Himango17-Nov-03 8:12
sponsorJudah Gabriel Himango17-Nov-03 8:12 
GeneralRe: Top most form Pin
Roger Stewart17-Nov-03 9:12
professionalRoger Stewart17-Nov-03 9:12 
GeneralRe: Top most form Pin
Judah Gabriel Himango17-Nov-03 9:21
sponsorJudah Gabriel Himango17-Nov-03 9:21 
Generalpassing TimeSpan in a RowFilter Expression Pin
nedeus17-Nov-03 0:31
nedeus17-Nov-03 0:31 
GeneralRe: passing TimeSpan in a RowFilter Expression Pin
Heath Stewart17-Nov-03 3:07
protectorHeath Stewart17-Nov-03 3:07 
GeneralRe: passing TimeSpan in a RowFilter Expression Pin
Anonymous17-Nov-03 3:30
Anonymous17-Nov-03 3:30 
GeneralArgumentOutOfRangeException Pin
Mertli Ozgur Nevres16-Nov-03 21:49
Mertli Ozgur Nevres16-Nov-03 21:49 

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.