SECMultiDocTemplate::SECMultiDocTemplate
Constructor
Defined in: Sdocmult.cpp
Syntax
SECMultiDocTemplate(UINT nIDResource, CRuntimeClass* pDocClass, CRuntimeClass* pViewClass, DWORD dwScxFlags);
SECMultiDocTemplate(UINT nIDResource, CRuntimeClass* pDocClass,CRuntimeClass* pFrameClass, CRuntimeClass* pViewClass,UINT nIDDockableResource = 0, CRuntimeClass* pDockableFrameClass = 0,CRuntimeClass* pControlBarClass = 0, DWORD dwScxFlags);
Return Value
void
Parameters
nIDResource
Specifies the ID of the resources used with the document type. This may include menu, icon, accelerator table, and string resources.
pDocClass
Points to the CRuntimeClass object of the document class. This class is a CDocument-derived class you define to represent your documents.
pViewClass
Points to the CRuntimeClass object of the view class. This class is a CView-derived class you define to display your documents.
pFrameClass
Points to the CRuntimeClass object of the frame-window class. This class can be a CMDIChildWnd-derived class, or it can be CMDIChildWnd itself if you want default behavior for your document frame windows.
nIDDockableResource
Use this resource for dockable frames
pDockableFrameClass
Runtime class for dockable frame window
pControlBarClass
Runtime class for dockable control bar
Comments
The following flags can be passed in dwScxFlags:
SCXOPT_ENABLED
Necessary for any WM_SYSCOMMANDEX processing
SCXOPT_NO_CAPTION_BUTTON
Turn off the caption button
SCXOPT_NO_HANDLE_RDBLCLK
disable right double click firing of WM_SYSCOMMANDEX.
SCXOPT_NO_CONTEXTMENU
disables the context menu, which is normally displayed on a right mouse button up in the caption.
dwScxFlags
WM_SYSCOMMANDEX flags (see comments)