Good Morning every one,
rigth now I'm working on a project where I have to use GDPicture to display images.
This GDPicture lib includes some olecontrols to do this stuff for me and rigth now it is very simple but I have to extend our program an add a thumbnailviewer to this view we build.
In order to do that I thougth it couldn't be so hard to use a CSplitterWnd and just place on the left side the olecontrol for the thumbnail viewer and on the rigth side the viewer.
I tried a bit with dialogs and CFrameView classes but when I override the create method and place the controle with "CreateControl" in this CFrameView I always get an assert message displayed at this point:
(winsplit.cpp line 318,CreateView)
ASSERT((int)_AfxGetDlgCtrlID(pWnd->m_hWnd) == IdFromRowCol(row, col));
Basically I just do this
(CThumbnailChild is a child of CFormView)
BOOL CThumbnailChild::Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext)
{
return CreateControl(GdPicture_NET_9::CLSID_GdViewer, lpszWindowName, dwStyle, rect, pParentWnd, nID);
}
The Dialog Settings are:
Border: NONE
Style: Child
Control: true
At rest the default settings apply
Long story short I just need to place two olecontrols , thumbnailviewer and the picture viewer in a CSplitterWnd.
Many thanks for your help, I hope you understand my problem
greetings