home *** CD-ROM | disk | FTP | other *** search
- // TODO: The property sheet attached to your project
- // via this function is not hooked up to any message
- // handler. In order to actually use the property sheet,
- // you will need to associate this function with a control
- // in your project such as a menu item or tool bar button.
- //
- // If mini frame does not already exist, create a new one.
- // Otherwise, unhide it
-
- if ($$VAL:FramePointer$$ == NULL)
- {
- $$VAL:FramePointer$$ = new $$VAL:FRAMECLASS$$;
- CRect rect(0, 0, 0, 0);
- CString strTitle;
- VERIFY(strTitle.LoadString($$VAL:SheetCaption$$));
-
- $$IF:!WNDCLASS$$
- // TODO: Warning: Your base class isn't a CWnd type
- // so the menu will be created with a parent HWND of NULL.
- $$ENDIF$$
- if (!$$VAL:FramePointer$$->Create(NULL, strTitle,
- WS_POPUP | WS_CAPTION | WS_SYSMENU, rect$$IF:WNDCLASS$$, this$$ENDIF$$))
- {
- delete $$VAL:FramePointer$$;
- $$VAL:FramePointer$$ = NULL;
- return;
- }
- $$VAL:FramePointer$$->CenterWindow();
- }
-
- // Before unhiding the modeless property sheet, update its
- // settings appropriately. For example, if you are reflecting
- // the state of the currently selected item, pick up that
- // information from the active view and change the property
- // sheet settings now.
-
- if ($$VAL:FramePointer$$ != NULL && !$$VAL:FramePointer$$->IsWindowVisible())
- $$VAL:FramePointer$$->ShowWindow(SW_SHOW);