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

C / C++ / MFC

 
QuestionRe: FindWindowEx, 'handle' and notepad.exe Pin
David Crow21-Oct-09 9:29
David Crow21-Oct-09 9:29 
AnswerRe: FindWindowEx, 'handle' and notepad.exe Pin
Ismaele.Jr21-Oct-09 9:55
Ismaele.Jr21-Oct-09 9:55 
GeneralRe: FindWindowEx, 'handle' and notepad.exe Pin
«_Superman_»21-Oct-09 11:11
professional«_Superman_»21-Oct-09 11:11 
GeneralRe: FindWindowEx, 'handle' and notepad.exe Pin
Ismaele.Jr21-Oct-09 11:26
Ismaele.Jr21-Oct-09 11:26 
GeneralRe: FindWindowEx, 'handle' and notepad.exe Pin
«_Superman_»21-Oct-09 11:43
professional«_Superman_»21-Oct-09 11:43 
GeneralRe: FindWindowEx, 'handle' and notepad.exe Pin
Ismaele.Jr21-Oct-09 21:09
Ismaele.Jr21-Oct-09 21:09 
GeneralRe: FindWindowEx, 'handle' and notepad.exe Pin
«_Superman_»21-Oct-09 21:25
professional«_Superman_»21-Oct-09 21:25 
GeneralRe: FindWindowEx, 'handle' and notepad.exe Pin
j4v14-Sep-10 14:31
j4v14-Sep-10 14:31 
something with _T being unicode or something. I read about it somewhere, but i'm not too uber leet with coding. All I know is that you must replace _T with Text("")

so it should be this...

int main(int argc, char **argv;
{
HANDLE notepad = FindWindow(0, Text("Untitled - Notepad"));
HANDLE dialog = FindWindowEx(notepad, 0, 0, Text("Open"));
HANDLE edit = FindWindowEx(dialog, 0, Text("EDIT"), 0);
::SetWindowText(edit, Text("ABRACADABRA"));
return(0);
}

That should fix your problem. I also know that if you can define _T, then it will work, but try to read up somewhere else. Sorry I don't know much, but that should get you moving.
GeneralRe: FindWindowEx, 'handle' and notepad.exe Pin
David Crow21-Oct-09 16:58
David Crow21-Oct-09 16:58 
GeneralRe: FindWindowEx, 'handle' and notepad.exe Pin
Ismaele.Jr1-Dec-09 0:42
Ismaele.Jr1-Dec-09 0:42 
QuestionRe: FindWindowEx, 'handle' and notepad.exe Pin
Randor 21-Oct-09 11:44
professional Randor 21-Oct-09 11:44 
AnswerRe: FindWindowEx, 'handle' and notepad.exe Pin
Ismaele.Jr22-Oct-09 7:08
Ismaele.Jr22-Oct-09 7:08 
AnswerRe: FindWindowEx, 'handle' and notepad.exe Pin
Adam Roderick J21-Oct-09 18:37
Adam Roderick J21-Oct-09 18:37 
GeneralRe: FindWindowEx, 'handle' and notepad.exe Pin
Ismaele.Jr21-Oct-09 21:13
Ismaele.Jr21-Oct-09 21:13 
GeneralRe: FindWindowEx, 'handle' and notepad.exe Pin
Adam Roderick J22-Oct-09 0:32
Adam Roderick J22-Oct-09 0:32 
QuestionRe: FindWindowEx, 'handle' and notepad.exe Pin
David Crow22-Oct-09 3:39
David Crow22-Oct-09 3:39 
AnswerRe: FindWindowEx, 'handle' and notepad.exe Pin
Adam Roderick J22-Oct-09 18:20
Adam Roderick J22-Oct-09 18:20 
GeneralRe: FindWindowEx, 'handle' and notepad.exe Pin
David Crow23-Oct-09 2:39
David Crow23-Oct-09 2:39 
GeneralRe: FindWindowEx, 'handle' and notepad.exe Pin
Ismaele.Jr22-Oct-09 7:02
Ismaele.Jr22-Oct-09 7:02 
GeneralRe: FindWindowEx, 'handle' and notepad.exe Pin
Randor 22-Oct-09 17:23
professional Randor 22-Oct-09 17:23 
GeneralRe: FindWindowEx, 'handle' and notepad.exe Pin
Adam Roderick J22-Oct-09 18:23
Adam Roderick J22-Oct-09 18:23 
GeneralRe: FindWindowEx, 'handle' and notepad.exe Pin
Ismaele.Jr1-Dec-09 0:45
Ismaele.Jr1-Dec-09 0:45 
GeneralRe: FindWindowEx, 'handle' and notepad.exe Pin
Ismaele.Jr1-Dec-09 0:45
Ismaele.Jr1-Dec-09 0:45 
QuestionDoes CDialog Constructer with nidTemplate attach a Window Pin
ForNow21-Oct-09 6:23
ForNow21-Oct-09 6:23 
AnswerRe: Does CDialog Constructer with nidTemplate attach a Window Pin
Code-o-mat21-Oct-09 11:07
Code-o-mat21-Oct-09 11:07 

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.