Hi All,
I want to keep View1 opening at the whole MicroStation session. Then how to program to prevent user close View 1 ?
Thanks very much !
Xue
I can use the below two lines to disable the "Close" button of View1. It can really prevent user to close View 1.
HWND hWnd = mdlNativeWindow_getWindowHandle (mdlWindow_viewWindowGet(0));EnableMenuItem(GetSystemMenu(hWnd, FALSE), SC_CLOSE, MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
HTH, YongAn
Answer Verified By: xue.yulian
So great! Thank you very much.