Click here to Skip to main content
15,906,947 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: window handle of a key pressed Pin
Stephen Hewitt22-Apr-10 5:11
Stephen Hewitt22-Apr-10 5:11 
QuestionHow can I change an icon on toolbar dynamically Pin
Software200722-Apr-10 3:06
Software200722-Apr-10 3:06 
AnswerRe: How can I change an icon on toolbar dynamically Pin
Eugen Podsypalnikov22-Apr-10 3:26
Eugen Podsypalnikov22-Apr-10 3:26 
GeneralRe: How can I change an icon on toolbar dynamically Pin
Software200722-Apr-10 4:18
Software200722-Apr-10 4:18 
GeneralRe: How can I change an icon on toolbar dynamically Pin
Eugen Podsypalnikov22-Apr-10 4:21
Eugen Podsypalnikov22-Apr-10 4:21 
GeneralRe: How can I change an icon on toolbar dynamically Pin
Software200722-Apr-10 4:46
Software200722-Apr-10 4:46 
GeneralRe: How can I change an icon on toolbar dynamically Pin
Eugen Podsypalnikov22-Apr-10 4:53
Eugen Podsypalnikov22-Apr-10 4:53 
GeneralRe: How can I change an icon on toolbar dynamically Pin
Software200722-Apr-10 5:06
Software200722-Apr-10 5:06 
GeneralRe: How can I change an icon on toolbar dynamically Pin
Eugen Podsypalnikov22-Apr-10 5:28
Eugen Podsypalnikov22-Apr-10 5:28 
Questionstd::string format Pin
gmallax22-Apr-10 2:03
gmallax22-Apr-10 2:03 
AnswerRe: std::string format Pin
Cedric Moonen22-Apr-10 2:18
Cedric Moonen22-Apr-10 2:18 
AnswerRe: std::string format Pin
Stuart Dootson22-Apr-10 5:09
professionalStuart Dootson22-Apr-10 5:09 
QuestionFind the windows Pin
Cvaji22-Apr-10 0:13
Cvaji22-Apr-10 0:13 
AnswerRe: Find the windows Pin
Code-o-mat22-Apr-10 0:21
Code-o-mat22-Apr-10 0:21 
GeneralRe: Find the windows Pin
Cvaji22-Apr-10 0:31
Cvaji22-Apr-10 0:31 
GeneralRe: Find the windows Pin
Code-o-mat22-Apr-10 0:38
Code-o-mat22-Apr-10 0:38 
GeneralRe: Find the windows Pin
Cvaji22-Apr-10 0:48
Cvaji22-Apr-10 0:48 
GeneralRe: Find the windows Pin
Code-o-mat22-Apr-10 1:00
Code-o-mat22-Apr-10 1:00 
GeneralRe: Find the windows Pin
Cvaji22-Apr-10 5:27
Cvaji22-Apr-10 5:27 
GeneralRe: Find the windows Pin
Code-o-mat22-Apr-10 6:16
Code-o-mat22-Apr-10 6:16 
No, i mean something like this:

HWND hWnd;
while ((hWnd = ::FindWindow(0, L"Untitled - Notepad")) != NULL)
{
  //Do what you need with hWnd
  ::SetWindowText(hWnd, L"Untitled - Notepad ");
}


Since you add a space at the end of the window text, the next time you call FindWindow, it will not find this window you already used (since it's title does not mach your search string anymore) and go on looking for the next one, if you find that next one, you add a space to that one too and so on untill you get no more windows...
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <

GeneralRe: Find the windows Pin
Cvaji22-Apr-10 6:40
Cvaji22-Apr-10 6:40 
GeneralRe: Find the windows Pin
Code-o-mat22-Apr-10 6:44
Code-o-mat22-Apr-10 6:44 
GeneralRe: Find the windows Pin
Cvaji22-Apr-10 6:54
Cvaji22-Apr-10 6:54 
QuestionChild windows and OOP Pin
zoopp22-Apr-10 0:04
zoopp22-Apr-10 0:04 
AnswerRe: Child windows and OOP Pin
Eugen Podsypalnikov22-Apr-10 2:16
Eugen Podsypalnikov22-Apr-10 2: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.