Get MDI Child Handle
Managed C++/CLI
1
Posts
1
Posters
0
Views
1
Watching
-
Is there a way to properly get the handle of an MDI child window thats been added. I am creating a new form then making it a child of my parent MDI form:
mFrmSubWindow->MdiParent = this;
Then I'm trying to get the windows handle, I do this by calling a fuction which does:(HWND)this->Handle.ToInt32()
When I call this I get an exception with the error "Error creating window handle" perhaps I am going about this the wrong way or not doing it properly? Thanks!