On 23.08.2011, at 10:43, asif saeed wrote:

> Hi,
> 
> I am using MFC with an FLTK based application. I have successfully isolated
> MFC and FLTK app starts up fine. However, the MFC based static library that
> I am using expects an MFC app and passes the hWnd value returned by
> AfxGetMainWnd() in its ::SetTimer() function. I think that this hWnd value
> is not being correctly passed to SetTimer. Since each window on Windows
> platform has an hWnd (a window handle, that is), I wonder if there is a way
> to obtain this window handle (hWnd) from FLTK. If I can have this hWnd then
> I can pass this hWnd to the initialization function of this library and have
> the library use this passed hWnd instead.


#define FL_INTERNALS
#include <FL/x.h>

HWND h = (HWND)fl_xid(const Fl_Window* w);
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to