39 #include <visp3/core/vpConfig.h>
41 #if ( defined(VISP_HAVE_GDI) || defined(VISP_HAVE_D3D9) )
42 #ifndef vpWin32Window_HH
43 #define vpWin32Window_HH
46 #ifndef DOXYGEN_SHOULD_SKIP_THIS
49 #include <visp3/gui/vpWin32Renderer.h>
50 #include <visp3/gui/vpGDIRenderer.h>
51 #include <visp3/core/vpDisplay.h>
52 #include <visp3/core/vpDisplayException.h>
56 #define vpWM_GETCLICK WM_USER+1
57 #define vpWM_DISPLAY WM_USER+2
58 #define vpWM_GETCLICKUP WM_USER+3
59 #define vpWM_CLOSEDISPLAY WM_USER+4
60 #define vpWM_GETPOINTERMOTIONEVENT WM_USER+5
61 #define vpWM_DISPLAY_ROI WM_USER+6
64 #define vpNO_BUTTON_QUERY -1
68 class VISP_EXPORT vpWin32Window
108 static bool registered;
111 vpWin32Renderer * renderer;
115 vpWin32Window(vpWin32Renderer * rend = NULL);
116 virtual ~vpWin32Window();
118 HWND getHWnd(){
return hWnd;}
121 bool isInitialized(){
return initialized; }
124 void initWindow(
const char* title,
int posx,
int posy,
unsigned int w,
unsigned int h);
126 void setScale(
unsigned int scale) { renderer->setScale(scale); };
134 friend LRESULT CALLBACK WndProc(HWND hWnd, UINT message,
135 WPARAM wParam, LPARAM lParam);
Display for windows using GDI (available on any windows 32 platform).
Display for windows using Direct3D 3rd party. Thus to enable this class Direct3D should be installed...
Base abstract class for Windows 32 displays. Implements the window creation in a separate thread and ...