mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
Defined __cplusplus for Doxygen
svn path=/trunk/; revision=6612
This commit is contained in:
parent
4961049825
commit
e6c72a5a0d
4 changed files with 25 additions and 3 deletions
|
@ -174,7 +174,7 @@ EXPAND_ONLY_PREDEF = NO
|
||||||
SEARCH_INCLUDES = YES
|
SEARCH_INCLUDES = YES
|
||||||
INCLUDE_PATH =
|
INCLUDE_PATH =
|
||||||
INCLUDE_FILE_PATTERNS =
|
INCLUDE_FILE_PATTERNS =
|
||||||
PREDEFINED =
|
PREDEFINED = __cplusplus
|
||||||
EXPAND_AS_DEFINED =
|
EXPAND_AS_DEFINED =
|
||||||
SKIP_FUNCTION_MACROS = YES
|
SKIP_FUNCTION_MACROS = YES
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
|
|
|
@ -174,7 +174,7 @@ EXPAND_ONLY_PREDEF = NO
|
||||||
SEARCH_INCLUDES = YES
|
SEARCH_INCLUDES = YES
|
||||||
INCLUDE_PATH =
|
INCLUDE_PATH =
|
||||||
INCLUDE_FILE_PATTERNS =
|
INCLUDE_FILE_PATTERNS =
|
||||||
PREDEFINED =
|
PREDEFINED = __cplusplus
|
||||||
EXPAND_AS_DEFINED =
|
EXPAND_AS_DEFINED =
|
||||||
SKIP_FUNCTION_MACROS = YES
|
SKIP_FUNCTION_MACROS = YES
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td><address style="align: right;"><small>
|
<td><address style="align: right;"><small>
|
||||||
ROS Explore Source Code Documentation
|
ROS Explore Source Code Documentation
|
||||||
<br>generated on 09.11.2003 by <a href="http://www.doxygen.org/index.html">
|
<br>generated on 10.11.2003 by <a href="http://www.doxygen.org/index.html">
|
||||||
<img src="doxygen.png" alt="doxygen" align="middle" border=0>
|
<img src="doxygen.png" alt="doxygen" align="middle" border=0>
|
||||||
</small></address>
|
</small></address>
|
||||||
</td>
|
</td>
|
||||||
|
|
|
@ -85,6 +85,7 @@ using namespace _com_util;
|
||||||
#define BUFFER_LEN 1024
|
#define BUFFER_LEN 1024
|
||||||
|
|
||||||
|
|
||||||
|
/// initialization of windows common controls
|
||||||
struct CommonControlInit
|
struct CommonControlInit
|
||||||
{
|
{
|
||||||
CommonControlInit(DWORD flags=ICC_LISTVIEW_CLASSES|ICC_TREEVIEW_CLASSES|ICC_BAR_CLASSES|ICC_PROGRESS_CLASS|ICC_COOL_CLASSES)
|
CommonControlInit(DWORD flags=ICC_LISTVIEW_CLASSES|ICC_TREEVIEW_CLASSES|ICC_BAR_CLASSES|ICC_PROGRESS_CLASS|ICC_COOL_CLASSES)
|
||||||
|
@ -115,6 +116,7 @@ protected:
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/// base of all structures storing a window handle
|
||||||
struct WindowHandle
|
struct WindowHandle
|
||||||
{
|
{
|
||||||
WindowHandle(HWND hwnd=0)
|
WindowHandle(HWND hwnd=0)
|
||||||
|
@ -128,6 +130,7 @@ protected:
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/// locally hide a window
|
||||||
struct HiddenWindow : public WindowHandle
|
struct HiddenWindow : public WindowHandle
|
||||||
{
|
{
|
||||||
HiddenWindow(HWND hwnd)
|
HiddenWindow(HWND hwnd)
|
||||||
|
@ -233,6 +236,7 @@ protected:
|
||||||
|
|
||||||
// window utilities
|
// window utilities
|
||||||
|
|
||||||
|
/// ClientRect retreives the client area rectangle of a window.
|
||||||
struct ClientRect : public RECT
|
struct ClientRect : public RECT
|
||||||
{
|
{
|
||||||
ClientRect(HWND hwnd)
|
ClientRect(HWND hwnd)
|
||||||
|
@ -245,6 +249,7 @@ struct ClientRect : public RECT
|
||||||
POINT& pos() {return *(LPPOINT)this;}
|
POINT& pos() {return *(LPPOINT)this;}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/// ClientRect retreives the window rectangle of a window.
|
||||||
struct WindowRect : public RECT
|
struct WindowRect : public RECT
|
||||||
{
|
{
|
||||||
WindowRect(HWND hwnd)
|
WindowRect(HWND hwnd)
|
||||||
|
@ -257,6 +262,7 @@ struct WindowRect : public RECT
|
||||||
POINT& pos() {return *(LPPOINT)this;}
|
POINT& pos() {return *(LPPOINT)this;}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/// PointL encapsulates the POINT structure into a C++ object.
|
||||||
struct Point : public POINT
|
struct Point : public POINT
|
||||||
{
|
{
|
||||||
Point(LONG x_, LONG y_)
|
Point(LONG x_, LONG y_)
|
||||||
|
@ -276,13 +282,16 @@ struct Point : public POINT
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/// transform coordinates in a RECT from client to screen coordiantes
|
||||||
inline void ClientToScreen(HWND hwnd, RECT* prect)
|
inline void ClientToScreen(HWND hwnd, RECT* prect)
|
||||||
{::ClientToScreen(hwnd,(LPPOINT)&prect->left); ::ClientToScreen(hwnd,(LPPOINT)&prect->right);}
|
{::ClientToScreen(hwnd,(LPPOINT)&prect->left); ::ClientToScreen(hwnd,(LPPOINT)&prect->right);}
|
||||||
|
|
||||||
|
/// transform coordinates in a RECT from screen to client coordiantes
|
||||||
inline void ScreenToClient(HWND hwnd, RECT* prect)
|
inline void ScreenToClient(HWND hwnd, RECT* prect)
|
||||||
{::ScreenToClient(hwnd,(LPPOINT)&prect->left); ::ScreenToClient(hwnd,(LPPOINT)&prect->right);}
|
{::ScreenToClient(hwnd,(LPPOINT)&prect->left); ::ScreenToClient(hwnd,(LPPOINT)&prect->right);}
|
||||||
|
|
||||||
|
|
||||||
|
/// structure containing information about full screen display of the frame window
|
||||||
struct FullScreenParameters
|
struct FullScreenParameters
|
||||||
{
|
{
|
||||||
FullScreenParameters()
|
FullScreenParameters()
|
||||||
|
@ -298,6 +307,7 @@ struct FullScreenParameters
|
||||||
|
|
||||||
// drawing utilities
|
// drawing utilities
|
||||||
|
|
||||||
|
/// PaintCanvas is a encapsulation of device contexts managed by BeginPaint()/EndPaint().
|
||||||
struct PaintCanvas : public PAINTSTRUCT
|
struct PaintCanvas : public PAINTSTRUCT
|
||||||
{
|
{
|
||||||
PaintCanvas(HWND hwnd)
|
PaintCanvas(HWND hwnd)
|
||||||
|
@ -317,6 +327,7 @@ protected:
|
||||||
HWND _hwnd;
|
HWND _hwnd;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/// Canvas is a encapsulation of device contexts.
|
||||||
struct Canvas
|
struct Canvas
|
||||||
{
|
{
|
||||||
Canvas(HDC hdc) : _hdc(hdc) {}
|
Canvas(HDC hdc) : _hdc(hdc) {}
|
||||||
|
@ -327,6 +338,7 @@ protected:
|
||||||
HDC _hdc;
|
HDC _hdc;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/// WindowCanvas is a encapsulation of client area device contexts.
|
||||||
struct WindowCanvas : public Canvas
|
struct WindowCanvas : public Canvas
|
||||||
{
|
{
|
||||||
WindowCanvas(HWND hwnd)
|
WindowCanvas(HWND hwnd)
|
||||||
|
@ -341,6 +353,7 @@ protected:
|
||||||
|
|
||||||
// double buffering classes
|
// double buffering classes
|
||||||
|
|
||||||
|
/// Memory Canvas creates and destroys memory devoce contexts.
|
||||||
struct MemCanvas : public Canvas
|
struct MemCanvas : public Canvas
|
||||||
{
|
{
|
||||||
MemCanvas(HDC hdc=0)
|
MemCanvas(HDC hdc=0)
|
||||||
|
@ -349,6 +362,7 @@ struct MemCanvas : public Canvas
|
||||||
~MemCanvas() {DeleteDC(_hdc);}
|
~MemCanvas() {DeleteDC(_hdc);}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/// SelectedBitmap is used to localy select bitmaps into device contexts.
|
||||||
struct SelectedBitmap
|
struct SelectedBitmap
|
||||||
{
|
{
|
||||||
SelectedBitmap(HDC hdc, HBITMAP hbmp)
|
SelectedBitmap(HDC hdc, HBITMAP hbmp)
|
||||||
|
@ -361,6 +375,7 @@ protected:
|
||||||
HBITMAP _old_hbmp;
|
HBITMAP _old_hbmp;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/// BufferCanvas manages offscreen bitmaps selected into memory device contexts.
|
||||||
struct BufferCanvas : public MemCanvas
|
struct BufferCanvas : public MemCanvas
|
||||||
{
|
{
|
||||||
BufferCanvas(HDC hdc, int x, int y, int w, int h)
|
BufferCanvas(HDC hdc, int x, int y, int w, int h)
|
||||||
|
@ -379,6 +394,7 @@ protected:
|
||||||
SelectedBitmap _bmp;
|
SelectedBitmap _bmp;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/// BufferedCanvas enables double buffering for a device context.
|
||||||
struct BufferedCanvas : public BufferCanvas
|
struct BufferedCanvas : public BufferCanvas
|
||||||
{
|
{
|
||||||
BufferedCanvas(HDC hdc, int x, int y, int w, int h, DWORD mode=SRCCOPY)
|
BufferedCanvas(HDC hdc, int x, int y, int w, int h, DWORD mode=SRCCOPY)
|
||||||
|
@ -392,6 +408,7 @@ struct BufferedCanvas : public BufferCanvas
|
||||||
DWORD _mode;
|
DWORD _mode;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/// BufferedPaintCanvas extends PaintCanvas for double buffering.
|
||||||
struct BufferedPaintCanvas : public PaintCanvas, public BufferedCanvas
|
struct BufferedPaintCanvas : public PaintCanvas, public BufferedCanvas
|
||||||
{
|
{
|
||||||
BufferedPaintCanvas(HWND hwnd)
|
BufferedPaintCanvas(HWND hwnd)
|
||||||
|
@ -404,6 +421,7 @@ struct BufferedPaintCanvas : public PaintCanvas, public BufferedCanvas
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/// TextColor locally selects a text color for drawing.
|
||||||
struct TextColor
|
struct TextColor
|
||||||
{
|
{
|
||||||
TextColor(HDC hdc, COLORREF color)
|
TextColor(HDC hdc, COLORREF color)
|
||||||
|
@ -416,6 +434,7 @@ protected:
|
||||||
COLORREF _old_color;
|
COLORREF _old_color;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/// TextColor locally sets the background mode for drawing.
|
||||||
struct BkMode
|
struct BkMode
|
||||||
{
|
{
|
||||||
BkMode(HDC hdc, int bkmode)
|
BkMode(HDC hdc, int bkmode)
|
||||||
|
@ -428,6 +447,7 @@ protected:
|
||||||
COLORREF _old_bkmode;
|
COLORREF _old_bkmode;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/// TextColor locally selects a font for drawing.
|
||||||
struct FontSelection
|
struct FontSelection
|
||||||
{
|
{
|
||||||
FontSelection(HDC hdc, HFONT hFont)
|
FontSelection(HDC hdc, HFONT hFont)
|
||||||
|
@ -440,6 +460,7 @@ protected:
|
||||||
HFONT _old_hFont;
|
HFONT _old_hFont;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/// TextColor locally selects a bitmap into a device context.
|
||||||
struct BitmapSelection
|
struct BitmapSelection
|
||||||
{
|
{
|
||||||
BitmapSelection(HDC hdc, HBITMAP hBmp)
|
BitmapSelection(HDC hdc, HBITMAP hBmp)
|
||||||
|
@ -453,6 +474,7 @@ protected:
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/// string class for convenience
|
||||||
struct String
|
struct String
|
||||||
#ifdef UNICODE
|
#ifdef UNICODE
|
||||||
: public wstring
|
: public wstring
|
||||||
|
|
Loading…
Reference in a new issue