FindWindows(2)
-
FindWindow
HWND hWnd = NULL; HWND phWnd = NULL; HDC hDC = NULL; char word[0xff]; AnsiString tmp = "--TRAY"; AnsiString titl = ""; hWnd = FindWindow("#32770", NULL); if(hWnd) { GetWindowText(hWnd, word, 0xfe); titl = AnsiString(word); phWnd = GetParent(hWnd); GetWindowText(phWnd, word, 0xfe); if(memcmp(word, tmp.c_str(), tmp.Length()) != 0) return; hWnd = FindWindowEx(hWnd, 0, NULL, "확인"); if(hWnd) { SendMe..
2010.07.13 -
TShellWindows 인데 FindWindow로 변경했을 떄와 같이 HWND를 받을 수 있도록 찾아보자.
//--------------------------------------------------------------------------- #include #include #pragma hdrstop #include "Unit1.h" //--------------------------------------------------------------------------- #pragma package(smart_init) #pragma link "shdocvw_ocx" #pragma resource "*.dfm" TForm1 *Form1; //--------------------------------------------------------------------------- __fastcall TForm..
2008.07.18