Click here to Skip to main content
15,914,066 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CBitmap.GetBitmapDimensions() problem Pin
PJ Arends26-May-05 22:12
professionalPJ Arends26-May-05 22:12 
GeneralRe: CBitmap.GetBitmapDimensions() problem Pin
toxcct26-May-05 22:19
toxcct26-May-05 22:19 
GeneralRe: CBitmap.GetBitmapDimensions() problem Pin
PJ Arends26-May-05 22:29
professionalPJ Arends26-May-05 22:29 
GeneralRe: CBitmap.GetBitmapDimensions() problem Pin
Gary R. Wheeler28-May-05 2:45
Gary R. Wheeler28-May-05 2:45 
GeneralRe: CBitmap.GetBitmapDimensions() problem Pin
toxcct28-May-05 6:42
toxcct28-May-05 6:42 
QuestionEnumWindows usage ? Pin
toxcct26-May-05 20:22
toxcct26-May-05 20:22 
AnswerRe: EnumWindows usage ? Pin
22491726-May-05 21:14
22491726-May-05 21:14 
AnswerRe: EnumWindows usage ? Pin
ThatsAlok26-May-05 21:32
ThatsAlok26-May-05 21:32 
toxcct wrote:
use EnumWindows(), but as i am not familiar at all with CallBack functions,

With CallBack, You can also use FindWindow and FindWindowEx to Enumerate all Visible desktop Window.

here little Piece of Code to do that:-
BOOL NMPEnumWindows(CStringArray *arWindowsName,CPtrArray *arhWnd)
{

//Declare some local variable

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


//Get desktop Window  
  hWnd=::GetDesktopWindow();
  

//start enumeration loop		
     do
         {
             hWnd1=::FindWindowEx(hWnd,hWnd1,NULL,NULL);
  
//Get Desktop window Title
             ::GetWindowText(hWnd1,lpString,200);
            Str.Format(\"%s\",lpString);
          
   //select only visible desktop window

          If((::IsWindowVisible(hWnd1)==TRUE)&&(Str!=\"\"))
	 {
	   arhWnd->Add((HWND)hWnd1);
	   arWindowsName->Add(Str);
 	 }

        }while(hWnd1!=NULL);

return TRUE;
}



"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow


cheers,
Alok Gupta
QuestionHow to Prevent Switching of Controls of Views in a Multiple View SDI Application using splitter window Pin
nripun26-May-05 19:48
nripun26-May-05 19:48 
GeneralAbout Serializaiton Pin
VPNampoothiri26-May-05 19:47
VPNampoothiri26-May-05 19:47 
GeneralWrong assembly copied during build Pin
RockyMu26-May-05 19:04
RockyMu26-May-05 19:04 
GeneralWhat's the compiler setting ... Pin
WREY26-May-05 16:43
WREY26-May-05 16:43 
GeneralRe: What's the compiler setting ... Pin
geo_m26-May-05 18:31
geo_m26-May-05 18:31 
GeneralRe: What's the compiler setting ... Pin
Bob Stanneveld26-May-05 20:48
Bob Stanneveld26-May-05 20:48 
GeneralRe: What's the compiler setting ... Pin
WREY26-May-05 22:37
WREY26-May-05 22:37 
GeneralRe: What's the compiler setting ... Pin
Bob Stanneveld26-May-05 22:49
Bob Stanneveld26-May-05 22:49 
QuestionWhat to learn: MFC for C++ or Windows API? Pin
CorvetteZ060626-May-05 16:40
CorvetteZ060626-May-05 16:40 
AnswerRe: What to learn: MFC for C++ or Windows API? Pin
Christian Graus26-May-05 16:47
protectorChristian Graus26-May-05 16:47 
GeneralRe: What to learn: MFC for C++ or Windows API? Pin
CorvetteZ060626-May-05 17:26
CorvetteZ060626-May-05 17:26 
GeneralRe: What to learn: MFC for C++ or Windows API? Pin
Christian Graus26-May-05 17:31
protectorChristian Graus26-May-05 17:31 
GeneralRe: What to learn: MFC for C++ or Windows API? Pin
Bob Stanneveld26-May-05 20:22
Bob Stanneveld26-May-05 20:22 
GeneralRe: What to learn: MFC for C++ or Windows API? Pin
S. Senthil Kumar26-May-05 20:33
S. Senthil Kumar26-May-05 20:33 
GeneralRe: What to learn: MFC for C++ or Windows API? Pin
Bob Stanneveld26-May-05 20:43
Bob Stanneveld26-May-05 20:43 
GeneralRe: What to learn: MFC for C++ or Windows API? Pin
Christian Graus27-May-05 1:57
protectorChristian Graus27-May-05 1:57 
GeneralRe: What to learn: MFC for C++ or Windows API? Pin
Bob Stanneveld27-May-05 2:03
Bob Stanneveld27-May-05 2:03 

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.