Hello,
I use the routine below with CONNECT in a .cpp source:
extern "C" HWND fenetre_principale_hwnd()
{
HWND hwnd;
if (mdlWindow_nativeWindowHandleGet(&hwnd, (MSWindowP)mdlDialog_overallTitleBarGet(), HANDLETYPE_HWND) != SUCCESS)
{
erreur("Erreur système: fenetre_principale_hwnd (a)"); return(NULL);
}
if (!hwnd) { erreur("Erreur système: fenetre_principale_hwnd(b)"); return(NULL); }
return(hwnd);
}
That function returns SUCCESS and hwnd = 0 under MS CONNECT. With MS V8i and previous versions of MS, hwnd was a native window handle. Is it normal?
Regards,
Patr93