PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

problem with getting mainwindow

hi!
i start a thread from a sdi-application (mfc) and
want to run gapidraw inside.
everything is ok. but my main problem is that
i get the adress of the mainwindow(from sdi-
application) but not the window.so i cannot clear the window when i blit backbuffer.

m_ParentFrame = AfxGetMainWnd()->GetSafeHwnd();
.
.
hr = m_display.OpenDisplay(m_ParentFrame, GDOPENDISPLAY_FULLSCREEN);

maybe someone can help me.
thanks w.
Hi,

Did you solve the problem? It's difficult to help since it's hard to understand what your issue really is. For example, what do you mean by "i get the adress of the mainwindow(from sdi-application) but not the window"?
hi !
i solved the problem.
thanks.