Class Library Reference
From Win32++
Library Reference |
Classes
|
Global Functions
| Defined in winutils.h | |
| GetApp | CWinApp* GetApp();Returns a pointer to the CWinApp derrived class. |
| GetCursorPos | CPoint GetCursorPos();Returns a CPoint containing the cursor position. |
| GetComCtlVersion | int GetComCtlVersion();Returns an integer which indicates the version of of the ComCtl32.dll used. |
| GetSizeofMenuItemInfo | UINT GetSizeofMenuItemInfo();Returns the correct size of the MENUITEMINFO structure for all versions of windows. |
| GetSizeofNonClientMetrics | UINT GetSizeofNonClientMetrics();Returns the correct size of the NONCLIENTMETRICS structure for all versions of windows. |
| GetWinVersion | int GetWinVersion();Returns an integer indicating the version of windows running. |
| IsAeroThemed | BOOL IsAeroThemed();Returns TRUE if Aero themes are being used. |
| IsXPThemed | BOOL IsXPThemed();Returns TRUE if XP themes are being used. |
| IsLeftButtonDown | BOOL IsLeftButtonDown();Returns TRUE if the left mouse button is pressed. |
| lstrcpyn | LPTSTR lstrcpyn(LPTSTR lpstrDest, LPCTSTR lpstrSrc, int nLength);Copies a specified number of characters from a source string to a destination string. |
| LoadCommonControls | void LoadCommonControls();Registers and initializes certain common control window classes. |
| TRACE | void TRACE(LPCSTR str); void TRACE(LPCWSTR str);Sends a string to the debug/output pane, or an external debugger. |
| String Conversion Functions | |
| A2BSTR | Converts an ANSI string to a BSTR string. |
| A2OLE | Converts an ANSI string to an OLE string. |
| A2T | Converts an ANSI string to a TCHAR string. |
| A2W | Converts an ANSI string to a WCHAR string. |
| OLE2A | Converts an OLE string to an ANSI string. |
| OLE2T | Converts an OLE string to a TCHAR string. |
| OLE2W | Converts an OLE string to a WCHAR string. |
| T2A | Converts a TCHAR string to an ANSI string. |
| T2BSTR | Converts a TCHAR string to a BSTR string. |
| T2OLE | Converts a TCHAR string to an OLE string. |
| T2W | Converts a TCHAR string to a WCHAR string. |
| W2A | Converts a WCHAR string to an ANSI string. |
| W2BSTR | Converts a WCHAR string to a BSTR string. |
| W2OLE | Converts a WCHAR string to an OLE string. |
| W2T | Converts a WCHAR string to a TCHAR string. |
| Defined in cstring.h | |
| LoadString | CString LoadString(UINT nID);Retrieves a string resource and returns the result as a CString. |
| Defined in webbrowser.h | |
| GetPidlLength | UINT GetPidlLength(LPITEMIDLIST pidl);Returns the length of the Item Identifier List. Item Identifier Lists identify the names of files and folders within the shell namespace. |
Macros
| GET_X_LPARAM | Retrieves the signed x-coordinate from the given LPARAM value. |
| GET_Y_LPARAM | Retrieves the signed y-coordinate from the given LPARAM value. |
| MAX | Returns the higher of two values. |
| MIN | Returns the lower of two values. |
| NO_USING_NAMESPACE | Define this macro to suppress using the Win32xx namespace. |
Type declarations
| tString | typedef std::basic_string<TCHAR> tString; |
| tStringStream | typedef std::basic_stringstream<TCHAR> tStringStream; |
| BitmapPtr | typedef Shared_Ptr<CBitmap> BitmapPtr; |
| BrushPtr | typedef Shared_Ptr<CBrush> BrushPtr; |
| DCPtr | typedef Shared_Ptr<CDC> DCPtr; |
| GDIPtr | typedef Shared_Ptr<CGDIObject> GDIPtr; |
| FontPtr | typedef Shared_Ptr<CFont> FontPtr; |
| ImageListPtr | typedef Shared_Ptr<CImageList> ImageListPtr; |
| MenuPtr | typedef Shared_Ptr<CMenu> MenuPtr; |
| PalettePtr | typedef Shared_Ptr<CPalette> PalettePtr; |
| PenPtr | typedef Shared_Ptr<CPen> PenPtr; |
| RgnPtr | typedef Shared_Ptr<CRgn> RgnPtr; |
| WndPtr | typedef Shared_Ptr<CWnd> WndPtr; |
Messages
| UWM_CLEANUPTEMPS | const UINT UWM_CLEANUPTEMPS = RegisterWindowMessage(_T("UWM_CLEANUPTEMPS"));
Message - posted to cleanup temporary
CDCs, CWnds etc. |
| UWM_DOCKACTIVATE | #define UWM_DOCKACTIVATE (WM_APP + 0x3F01)Message - sent to dock ancestor when a docker is activated or deactivated. |
| UWM_DOCKDESTROYED | #define UWM_DOCKDESTROYED (WM_APP + 0x3F02)Message - posted when docker is destroyed. |
| UWM_DRAWRBBKGND | #define UWM_DRAWRBBKGND (WM_APP + 0x3F03)Message - sent by rebar to parent to perform background drawing. Return TRUE if handled. |
| UWM_DRAWSBBKGND | #define UWM_DRAWSBBKGND (WM_APP + 0x3F04)Message - sent by statusbar to parent to perform background drawing. Return TRUE if handled. |
| UWM_GETFRAMEVIEW | #define UWM_GETFRAMEVIEW (WM_APP + 0x3F05)Message - returns the HWND of the frame's view window. |
| UWM_GETMBTHEME | #define UWM_GETMBTHEME (WM_APP + 0x3F06)Message - returns a pointer to MenuBarTheme. |
| UWM_GETRBTHEME | #define UWM_GETRBTHEME (WM_APP + 0x3F07)Message - returns a pointer to ReBarTheme. |
| UWM_GETSBTHEME | #define UWM_GETSBTHEME (WM_APP + 0x3F08)Message - returns a pointer to StatusBarTheme. |
| UWM_GETTBTHEME | #define UWM_GETTBTHEME (WM_APP + 0x3F09)Message - returns a pointer to ToolBarTheme. |
| UWM_POPUPMENU | #define UWM_POPUPMENU (WM_APP + 0x3F0A)Message - creates the menubar popup menu. |
| UWM_TBRESIZE | #define UWM_TBRESIZE (WM_APP + 0x3F0B)Message - sent by toolbar to parent. Used by the rebar. |
| UWM_TBWINPOSCHANGING | #define UWM_TBWINPOSCHANGING (WM_APP + 0x3F0C)Message - sent to parent. Toolbar is resizing. |
| UWM_UPDATECOMMAND | #define UWM_UPDATECOMMAND (WM_APP + 0x3F0D)Message - sent before a menu is displayed. Used by OnUpdate. |
| UWM_WINDOWCREATED | const UINT UWM_WINDOWCREATED = RegisterWindowMessage(_T("UWM_WINDOWCREATED"));
Message - posted when a window is created or
attached. |
| UWN_BARSTART | #define UWN_BARSTART (WM_APP + 0x3F0E)Notification - docker bar selected for move. |
| UWN_BARMOVE | #define UWN_BARMOVE (WM_APP + 0x3F0F)Notification - docker bar moved. |
| UWN_BAREND | #define UWN_BAREND (WM_APP + 0x3F10)Notification - end of docker bar move. |
| UWN_DOCKSTART | #define UWN_DOCKSTART (WM_APP + 0x3F11)Notification - about to start undocking. |
| UWN_DOCKMOVE | #define UWN_DOCKMOVE (WM_APP + 0x3F12)Notification - undocked docker is being moved. |
| UWN_DOCKEND | #define UWN_DOCKEND (WM_APP + 0x3F13)Notification - docker has been docked. |
| UWN_TABCHANGED | #define UWN_TABCHANGED (WM_APP + 0x3F14)Notification - tab size or position changed. |
| UWN_TABDRAGGED | #define UWN_TABDRAGGED (WM_APP + 0x3F15)Notification - tab is being dragged. |
| UWN_UNDOCKED | define UWN_UNDOCKED (WM_APP + 0x3F16)Notification - sent by docker when undocked. |