Click here to Skip to main content
16,012,025 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: wait/sleep func for win32 console apps? Pin
Sprudling23-Jul-02 8:28
Sprudling23-Jul-02 8:28 
GeneralRe: wait/sleep func for win32 console apps? Pin
Daniel Lohmann23-Jul-02 9:58
Daniel Lohmann23-Jul-02 9:58 
QuestionHow to determine the device? Pin
bigcake22-Jul-02 20:53
bigcake22-Jul-02 20:53 
Generalfopen failes Pin
GBlank22-Jul-02 20:41
sussGBlank22-Jul-02 20:41 
GeneralRe: fopen failes Pin
Stuart Dootson22-Jul-02 20:51
professionalStuart Dootson22-Jul-02 20:51 
GeneralRe: fopen failes Pin
Alexandru Savescu22-Jul-02 21:45
Alexandru Savescu22-Jul-02 21:45 
GeneralControl detection Pin
vikramlinux22-Jul-02 20:03
vikramlinux22-Jul-02 20:03 
GeneralRe: Control detection Pin
Aggtaa23-Jul-02 1:32
Aggtaa23-Jul-02 1:32 
Yep. No problem Smile | :)
Just
1st) enumerate all windows in system (EnumWindows, or, much eaier in case of ONE target window - EnumChildWindows)
2st) determine if they do have target window (one, or did i mis anything?) like
BOOL CALLBACK EnumChildProc(HWND hWnd, LPARAM lParam)
{
CMyDlg *pDlg = (CMyDlg*)(AfxGetApp()->m_pMainWnd);
HWND hTempWnd = hWnd;
while (hTempWnd != NULL && pDlg->IsTargetWnd(hTempWnd ))
hTempWnd = ::GetParentWnd(hTempWnd );
if (hTempWnd == NULL)
return TRUE;
...
}
3rd) get their rects with GetWindowRet,
4th) if needed convert them into client coordinates (ClientToScreen & back ScreenToClient)
5th) check if they lay inside traget rect with (IntersectRect and some additional work in case of target rect lays fully inside some controls)
6th) that all falks, like MGM said Smile | :)

Cryst
QuestionHow to send message to another program? Pin
RichardWdy22-Jul-02 19:20
RichardWdy22-Jul-02 19:20 
AnswerRe: How to send message to another program? Pin
Williams23-Jul-02 4:49
Williams23-Jul-02 4:49 
GeneralRe: How to send message to another program? Pin
RichardWdy23-Jul-02 5:38
RichardWdy23-Jul-02 5:38 
GeneralRe: How to send message to another program? Pin
RichardWdy23-Jul-02 5:52
RichardWdy23-Jul-02 5:52 
GeneralRe: How to send message to another program? Pin
Williams23-Jul-02 6:47
Williams23-Jul-02 6:47 
GeneralRe: How to send message to another program? Pin
RichardWdy23-Jul-02 18:06
RichardWdy23-Jul-02 18:06 
GeneralRe: How to send message to another program? Pin
RichardWdy23-Jul-02 18:06
RichardWdy23-Jul-02 18:06 
GeneralRe: How to send message to another program? Pin
Williams24-Jul-02 3:13
Williams24-Jul-02 3:13 
GeneralRe: How to send message to another program? Pin
RichardWdy24-Jul-02 3:32
RichardWdy24-Jul-02 3:32 
GeneralRe: How to send message to another program? Pin
Williams24-Jul-02 3:40
Williams24-Jul-02 3:40 
GeneralRe: How to send message to another program? Pin
RichardWdy24-Jul-02 4:21
RichardWdy24-Jul-02 4:21 
GeneralRe: How to send message to another program? Pin
Williams24-Jul-02 4:48
Williams24-Jul-02 4:48 
GeneralRe: How to send message to another program? Pin
RichardWdy24-Jul-02 4:57
RichardWdy24-Jul-02 4:57 
GeneralRe: How to send message to another program? Pin
Williams24-Jul-02 5:10
Williams24-Jul-02 5:10 
GeneralRe: How to send message to another program? Pin
RichardWdy24-Jul-02 5:46
RichardWdy24-Jul-02 5:46 
GeneralRe: How to send message to another program? Pin
Williams24-Jul-02 7:00
Williams24-Jul-02 7:00 
GeneralRe: How to send message to another program? Pin
RichardWdy24-Jul-02 17:10
RichardWdy24-Jul-02 17:10 

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.