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

C / C++ / MFC

 
GeneralRe: C++ memory Pin
rocky_pulley11-Feb-05 0:36
rocky_pulley11-Feb-05 0:36 
GeneralRe: C++ memory Pin
SnuhEyeless13-Feb-05 8:36
SnuhEyeless13-Feb-05 8:36 
GeneralPrevent closing in CPropertySheet Pin
Zero_divide_110-Feb-05 14:20
Zero_divide_110-Feb-05 14:20 
GeneralDrawing button Pin
joy00710-Feb-05 13:46
joy00710-Feb-05 13:46 
GeneralRe: Drawing button Pin
rocky_pulley11-Feb-05 4:25
rocky_pulley11-Feb-05 4:25 
GeneralTop Windows Pin
Joel Holdsworth10-Feb-05 11:40
Joel Holdsworth10-Feb-05 11:40 
GeneralRe: Top Windows Pin
rocky_pulley10-Feb-05 11:47
rocky_pulley10-Feb-05 11:47 
GeneralRe: Top Windows Pin
ThatsAlok10-Feb-05 18:37
ThatsAlok10-Feb-05 18:37 
Try Combination of FindWindow and FindWindowEx.

here is small piece of code,please Check Is it suit your requirements.
BOOL NMPEnumWindows(CStringArray *arWindowsName,CPtrArray *arhWnd)
{

<font color=#008000>//Declare some local variable</font>

  HWND hWnd,hWnd1=NULL;
  CString Str;
  char lpString[201];


<font color=#008000>//Get desktop Window  </font>
  hWnd=::GetDesktopWindow();
  

<font color=#008000>//start enumeration loop	</font>	
     do
         {
             hWnd1=::FindWindowEx(hWnd,hWnd1,NULL,NULL);
  
<font color=#008000>//Get Desktop window Title</font>
             ::GetWindowText(hWnd1,lpString,200);
            Str.Format("%s",lpString);
          
<font color=#008000>   //select only visible desktop window
</font>
          If((::IsWindowVisible(hWnd1)==TRUE)&&(Str!=""))
	 {
	   arhWnd->Add((HWND)hWnd1);
	   arWindowsName->Add(Str);
 	 }

        }while(hWnd1!=NULL);

return TRUE;
}




"I Think this Will Help"
<h5
 alok gupta="" <br=""> visit me at http://www.thisisalok.tk

GeneralRe: Top Windows Pin
Joel Holdsworth11-Feb-05 5:33
Joel Holdsworth11-Feb-05 5:33 
GeneralRe: Top Windows Pin
ThatsAlok12-Feb-05 1:59
ThatsAlok12-Feb-05 1:59 
QuestionHow can refresh screen? Pin
sysmatrix10-Feb-05 10:49
sysmatrix10-Feb-05 10:49 
AnswerRe: How can refresh screen? Pin
David Crow10-Feb-05 11:13
David Crow10-Feb-05 11:13 
AnswerRe: How can refresh screen? Pin
sysmatrix10-Feb-05 11:19
sysmatrix10-Feb-05 11:19 
AnswerRe: How can refresh screen? Pin
rocky_pulley10-Feb-05 11:46
rocky_pulley10-Feb-05 11:46 
AnswerRe: How can refresh screen? Pin
Ravi Bhavnani10-Feb-05 11:57
professionalRavi Bhavnani10-Feb-05 11:57 
AnswerRe: How can refresh screen? Pin
Michael Dunn10-Feb-05 13:02
sitebuilderMichael Dunn10-Feb-05 13:02 
AnswerRe: How can refresh screen? Pin
uday__m11-Feb-05 2:48
uday__m11-Feb-05 2:48 
Generaldialogs Pin
Member 169273510-Feb-05 10:38
Member 169273510-Feb-05 10:38 
GeneralRe: dialogs Pin
David Crow10-Feb-05 11:14
David Crow10-Feb-05 11:14 
GeneralOwner Draw Crashing Pin
sir kaber10-Feb-05 10:34
sir kaber10-Feb-05 10:34 
GeneralRe: Owner Draw Crashing Pin
sir kaber10-Feb-05 10:56
sir kaber10-Feb-05 10:56 
GeneralVC++ (6.0, .NET) USB device IO Pin
bwray10-Feb-05 9:56
bwray10-Feb-05 9:56 
GeneralRe: VC++ (6.0, .NET) USB device IO Pin
tssp10-Feb-05 17:19
tssp10-Feb-05 17:19 
GeneralRe: VC++ (6.0, .NET) USB device IO Pin
Elmue4-Dec-09 8:03
Elmue4-Dec-09 8:03 
GeneralRetreiving return value from stored procedure in C++ Pin
rick742310-Feb-05 8:46
rick742310-Feb-05 8:46 

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.