26#ifndef _SO_WIN_COMPONENT_H_
27#define _SO_WIN_COMPONENT_H_
118SoDEPRECATED SoNONUNICODE
static void displayHelp(
const char* filename,
UINT contextID);
243 SoNONUNICODE
void setTitle(
const char* newTitle );
295 { windowCloseFunc = func; windowCloseData = data; }
341 static void exitClass();
385 void setClassName(
const SbString& n ) { m_guiComponent->setClassName( n ); }
393 virtual void windowCloseAction();
398 virtual void afterRealizeHook();
407 virtual SbString getDefaultWidgetName()
const;
408 virtual SbString getDefaultTitle()
const;
409 virtual SbString getDefaultIconTitle()
const;
425 void unregisterWidget(
SoWidget w );
432 void* userData = NULL );
434 void* userData = NULL );
452 static void openHelpPage(
const SbString& helpPage );
459 void setResize(
SbBool nResize ) { m_nResizeBaseWidget = nResize; }
460 SbBool getResize() {
return m_nResizeBaseWidget ; }
463 static HPALETTE _setupColorPalette(
HDC );
465 void unSubclassDialog(
Hwnd hWnd );
466 void subclassDialog(
Hwnd hWnd );
467 void drawDialogIcon(
Hwnd hWnd );
470 WPARAM wParam, LPARAM lParam );
471 static Hwnd getMDIAncestor(
Hwnd win );
494 virtual void widgetDestroyed();
503 SbBool ShellMapped, widgetMapped;
505 void checkForVisibilityChange();
510 long style, extStyle;
517 void* windowCloseData;
521 static SbDict* widgetDictionary;
525 WNDPROC parentWndProc;
526 WNDPROC origDlgWndProc;
530 SbBool m_nResizeBaseWidget;
532 static void OnWmSize(
Hwnd hwnd,
UINT message,
533 WPARAM wParam, LPARAM lParam );
534 static void OnWmPaint(
Hwnd hwnd,
UINT message,
535 WPARAM wParam, LPARAM lParam );
536 static void OnWmDestroy(
Hwnd hwnd,
UINT message,
537 WPARAM wParam, LPARAM lParam );
541 WPARAM wParam, LPARAM lParam );
543 WPARAM wParam, LPARAM lParam );
#define TRUE
Possible value of SbBool.
void SoWinComponentVisibilityCB(void *userData, SbBool visibleFlag)
void SoWinComponentCB(void *userData, SoWinComponent *comp)
#define PIXELFORMATDESCRIPTOR
Class for smart character strings.
Manages a list of callbacks and associated data.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Abstract base cl...
SbBool isTopLevelShell() const
Returns TRUE if this component is a top level shell component (has its own window).
UINT * getDisplay()
Included for portability only.
SoWidget getParentWidget() const
Returns the parent window handle, be it a shell or not.
SbBool isVisible()
Returns TRUE if this component is mapped onto the screen.
SbString getClassName() const
Returns the class name.
void setSize(const SbVec2s &size)
Convenience routine on the window handle.
SbString helpContextString
The TopicID of the help topic to open when the viewer Help button is pressed.
SbString getTitle() const
Gets window title.
void setTitle(const SbString &newTitle)
Sets window title.
SbVec2s getSize()
Convenience routine on the window handle.
SbString helpFileName
Name of help file to open when the viewer Help button is pressed.
SbBool setFullScreen(const SbBool enable)
Switches the viewer into (or out of) fullscreen mode.
virtual void show()
This shows the component.
virtual void hide()
This hides the component.
SoWidget getWidget() const
This returns the base window handle for this component.
static SoWinComponent * getComponent(SoWidget w)
Returns the SoWinComponent for this window handle.
SoNONUNICODE void setTitle(const char *newTitle)
Sets window title.
SoWidget getShellWidget() const
Returns the shell window handle (NULL if the shell hasn't been created by this component).
void setWindowCloseCallback(SoWinComponentCB *func, void *data=NULL)
Sets which callback to call when the user closes this component (double click in the upper left corne...
SbString getIconTitle() const
Included for portability only.
void setIconTitle(const SbString &newIconTitle)
Included for portability only.
UINT helpContextID
The context ID of the help topic to open when the viewer Help button is pressed.
void setFullScreenEnable(const SbBool enable)
Enables/disables fullscreen mode.
SbBool isFullScreen() const
Queries if the viewer is in fullscreen mode.
SoDEPRECATED static SoNONUNICODE void displayHelp(const char *filename, UINT contextID)
Static method to display the specified topic of the specified help file.
virtual ~SoWinComponent()
Destructor.
SbString getWidgetName() const
Returns the window handle name.
SoNONUNICODE void setIconTitle(const char *newIconTitle)
Included for portability only.
SbBool isFullScreenEnable(void) const
Queries if it is possible to put the viewer in fullscreen mode.
friend class SoWinComponentP