Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

[CONNECT C++] mdlWindow_nativeWindowHandleGet

$
0
0

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

  


Viewing all articles
Browse latest Browse all 7260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>