Click here to Skip to main content
15,909,440 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generaluser defined messages Pin
namaskaaram13-Apr-05 22:52
namaskaaram13-Apr-05 22:52 
GeneralRe: user defined messages Pin
binh.pham13-Apr-05 23:09
binh.pham13-Apr-05 23:09 
GeneralClickety police Pin
Trollslayer13-Apr-05 23:17
mentorTrollslayer13-Apr-05 23:17 
GeneralRe: user defined messages Pin
namaskaaram14-Apr-05 1:37
namaskaaram14-Apr-05 1:37 
GeneralRe: user defined messages Pin
David Crow14-Apr-05 2:43
David Crow14-Apr-05 2:43 
Generalsend messages to other windows Pin
cuongnguyennnn13-Apr-05 22:34
susscuongnguyennnn13-Apr-05 22:34 
GeneralRe: send messages to other windows Pin
ThatsAlok13-Apr-05 23:34
ThatsAlok13-Apr-05 23:34 
GeneralRe: send messages to other windows Pin
mark novak14-Apr-05 0:47
mark novak14-Apr-05 0:47 
First you get the HWND of the window you want. You use a function like FindWindowEx to do this. Using Spy++ is great for figuring out your window hierarchy. Usually you want to get a window by the third parameter, the class because it doesn’t change like the text can change. Here is a short example:

HWND hNotepad = FindWindowEx(0, 0, "Notepad", 0);
if(hNotepad)
SendMessage(hNotepad, WM_SETTEXT, 0, (LPARAM) "Hah, I found you!");
else
MessageBox(0, "Couldn't find notepad.", "Darn", MB_OK);

GeneralRe: send messages to other windows Pin
CuongNguyennn14-Apr-05 9:05
sussCuongNguyennn14-Apr-05 9:05 
GeneralRe: send messages to other windows Pin
mark novak14-Apr-05 11:48
mark novak14-Apr-05 11:48 
GeneralRe: send messages to other windows Pin
ThatsAlok14-Apr-05 19:28
ThatsAlok14-Apr-05 19:28 
GeneralAn error about RTC_VIDEO_DEVICE Pin
yeetins13-Apr-05 21:32
yeetins13-Apr-05 21:32 
GeneralRe: An error about RTC_VIDEO_DEVICE Pin
Trollslayer13-Apr-05 23:22
mentorTrollslayer13-Apr-05 23:22 
GeneralRe: An error about RTC_VIDEO_DEVICE Pin
yeetins14-Apr-05 0:20
yeetins14-Apr-05 0:20 
GeneralRemote communication Pin
itkid13-Apr-05 20:00
itkid13-Apr-05 20:00 
GeneralRe: Remote communication Pin
22491713-Apr-05 21:15
22491713-Apr-05 21:15 
GeneralRe: Remote communication Pin
itkid13-Apr-05 22:31
itkid13-Apr-05 22:31 
GeneralRe: Remote communication Pin
ThatsAlok13-Apr-05 23:55
ThatsAlok13-Apr-05 23:55 
GeneralRe: Remote communication Pin
itkid14-Apr-05 0:23
itkid14-Apr-05 0:23 
GeneralRe: Remote communication Pin
ThatsAlok14-Apr-05 1:30
ThatsAlok14-Apr-05 1:30 
GeneralInclusion of header file in project Pin
swarnamanoo13-Apr-05 19:27
swarnamanoo13-Apr-05 19:27 
GeneralRe: Inclusion of header file in project Pin
mark novak14-Apr-05 0:56
mark novak14-Apr-05 0:56 
Questionread binary? Pin
chal_adiera13-Apr-05 19:23
chal_adiera13-Apr-05 19:23 
AnswerRe: read binary? Pin
ddmcr13-Apr-05 21:56
ddmcr13-Apr-05 21:56 
GeneralRe: read binary? Pin
chal_adiera13-Apr-05 22:53
chal_adiera13-Apr-05 22:53 

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.