window.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ChildWndInfo
 information structure for creation of a child window More...
struct  Window
 Class Window is the base class for several C++ window wrapper classes. More...
struct  Window::StaticWindowData
 structure for managing critical sections as static class information in struct Window More...
struct  TypeCheck< CLASS >
 dynamic casting of Window pointers More...
struct  SubclassedWindow
 SubclassedWindow is used to wrap already existing window handles into C++ Window objects. More...
struct  WindowCreator< WND_CLASS >
 template class used in macro WINDOW_CREATOR to define the creater functions for Window objects More...
struct  WindowCreatorInfo< WND_CLASS, INFO_CLASS >
 template class used in macro WINDOW_CREATOR_INFO to the define creater functions for Window objects with additional creation information More...
struct  WindowClass
 WindowClass is a neat wrapper for RegisterClassEx(). More...
struct  BtnWindowClass
 window class with gray background color More...
struct  IconWindowClass
 window class with specified icon from resources More...
struct  MenuInfo
 menu info structure More...
struct  ChildWindow
 Class ChildWindow is used with class MainFrame. More...
struct  PreTranslateWindow
 PreTranslateWindow is used to register windows to be called by Window::pretranslate_msg(). More...
struct  DialogWindow
 The class DialogWindow implements modeless dialogs, which are managed by Window::dispatch_dialog_msg() in Window::MessageLoop(). More...
struct  Dialog
 The class Dialog implements modal dialogs. More...
struct  PropSheetPage
struct  PropertySheetDialog
 Property Sheet dialog. More...
struct  PropSheetPageDlg
 Property Sheet Page (inner dialog). More...
struct  ResizeEntry
 structure to assign RESIZE_FLAGS to dialogs control More...
struct  ResizeManager
 Management of controls in resizable dialogs. More...
struct  ResizeController< BASE >
 Controller base template class for resizable dialogs. More...
struct  Button
 This class constructs button controls. More...
struct  Static
 This class constructs static controls. More...
struct  CtlColorParent< BASE >
struct  OwnerDrawParent< BASE >
 draw message routing for ColorButton and PictureButton More...
struct  OwnerdrawnButton
 Subclass button controls to draw them by using PM_DISPATCH_DRAWITEM The owning window should use the OwnerDrawParent template to route owner draw messages to the buttons. More...
struct  FlatButton
 Subclass button controls to paint colored text labels. More...
struct  PictureButton
 Subclass button controls to paint pictures left to the labels. More...
struct  ColorStatic
struct  HyperlinkCtrl
 Hyperlink Controls. More...
struct  ToolTip
 encapsulation of tool tip controls More...
struct  ListSort
 sorting of list controls More...
struct  TrayIcon
struct  TrayIconControllerTemplate< BASE >
struct  EditController

Defines

#define GET_WINDOW(CLASS, hwnd)   Window::get_window<CLASS>(hwnd)
#define NFR_CURRENT   NFR_ANSI
#define WINDOW_DYNAMIC_CAST(CLASS, hwnd)   TypeCheck<CLASS>::dyn_cast(Window::get_window(hwnd))
#define WINDOW_CREATOR(WND_CLASS)   ((Window::CREATORFUNC) WindowCreator<WND_CLASS>::window_creator)
#define WINDOW_CREATOR_INFO(WND_CLASS, INFO_CLASS)   ((Window::CREATORFUNC_INFO) WindowCreatorInfo<WND_CLASS, INFO_CLASS>::window_creator)
#define PM_DISPATCH_COMMAND   (WM_APP+0x00)
#define PM_TRANSLATE_MSG   (WM_APP+0x01)
#define SPLIT_WIDTH   5
#define DEFAULT_SPLIT_POS   300
#define COLOR_SPLITBAR   LTGRAY_BRUSH
#define PM_FRM_GET_MENUINFO   (WM_APP+0x02)
#define Frame_GetMenuInfo(hwnd)   ((MenuInfo*)SNDMSG(hwnd, PM_FRM_GET_MENUINFO, 0, 0))
#define PM_SETSTATUSTEXT   (WM_APP+0x1E)
#define PM_FRM_CALC_CLIENT   (WM_APP+0x03)
#define Frame_CalcFrameClient(hwnd, prt)   ((BOOL)SNDMSG(hwnd, PM_FRM_CALC_CLIENT, 0, (LPARAM)(PRECT)prt))
#define PM_JUMP_TO_URL   (WM_APP+0x25)
#define PM_URL_CHANGED   (WM_APP+0x26)
#define PM_DISPATCH_CTLCOLOR   (WM_APP+0x08)
#define PM_DISPATCH_DRAWITEM   (WM_APP+0x09)
#define PM_TRAYICON   (WM_APP+0x20)
#define WINMSG_TASKBARCREATED   TEXT("TaskbarCreated")

Typedefs

typedef set< HWND > WindowSet

Enumerations

enum  RESIZE_FLAGS {
  MOVE_LEFT = 0x1, MOVE_RIGHT = 0x2, MOVE_TOP = 0x4, MOVE_BOTTOM = 0x8,
  MOVE_X = MOVE_LEFT | MOVE_RIGHT, MOVE_Y = MOVE_TOP | MOVE_BOTTOM, RESIZE_X = MOVE_RIGHT, RESIZE_Y = MOVE_BOTTOM,
  MOVE = MOVE_X | MOVE_Y, RESIZE = RESIZE_X | RESIZE_Y
}
 Flags to specify how to move and resize controls when resizing their parent window. More...
enum  { TRAYBUTTON_LEFT = 0, TRAYBUTTON_RIGHT, TRAYBUTTON_MIDDLE }

Functions

void DrawGrayText (HDC hdc, LPRECT pRect, LPCTSTR text, int dt_flags)
int ListView_GetItemData (HWND list_ctrl, int idx)
int ListView_FindItemPara (HWND list_ctrl, LPARAM param)
int ListView_GetFocusedItem (HWND list_ctrl)
LPARAM TreeView_GetItemData (HWND hwndTreeView, HTREEITEM hItem)


Define Documentation

#define COLOR_SPLITBAR   LTGRAY_BRUSH

Definition at line 263 of file window.h.

#define DEFAULT_SPLIT_POS   300

Definition at line 262 of file window.h.

#define Frame_CalcFrameClient ( hwnd,
prt   )     ((BOOL)SNDMSG(hwnd, PM_FRM_CALC_CLIENT, 0, (LPARAM)(PRECT)prt))

Definition at line 370 of file window.h.

#define Frame_GetMenuInfo ( hwnd   )     ((MenuInfo*)SNDMSG(hwnd, PM_FRM_GET_MENUINFO, 0, 0))

Definition at line 274 of file window.h.

#define GET_WINDOW ( CLASS,
hwnd   )     Window::get_window<CLASS>(hwnd)

Definition at line 85 of file window.h.

#define NFR_CURRENT   NFR_ANSI

Definition at line 136 of file window.h.

#define PM_DISPATCH_COMMAND   (WM_APP+0x00)

Definition at line 257 of file window.h.

#define PM_DISPATCH_CTLCOLOR   (WM_APP+0x08)

Definition at line 575 of file window.h.

Referenced by ColorStatic::WndProc(), and CtlColorParent< BASE >::WndProc().

#define PM_DISPATCH_DRAWITEM   (WM_APP+0x09)

Definition at line 603 of file window.h.

Referenced by OwnerDrawParent< BASE >::WndProc().

#define PM_FRM_CALC_CLIENT   (WM_APP+0x03)

Definition at line 369 of file window.h.

Referenced by ResizeController< BASE >::WndProc().

#define PM_FRM_GET_MENUINFO   (WM_APP+0x02)

Definition at line 272 of file window.h.

#define PM_JUMP_TO_URL   (WM_APP+0x25)

Definition at line 372 of file window.h.

#define PM_SETSTATUSTEXT   (WM_APP+0x1E)

Definition at line 308 of file window.h.

Referenced by WebChildWindow::ProgressChange(), and WebChildWindow::StatusTextChange().

#define PM_TRANSLATE_MSG   (WM_APP+0x01)

Definition at line 258 of file window.h.

#define PM_TRAYICON   (WM_APP+0x20)

Definition at line 966 of file window.h.

Referenced by TrayIcon::Set(), and TrayIconControllerTemplate< BASE >::WndProc().

#define PM_URL_CHANGED   (WM_APP+0x26)

Definition at line 373 of file window.h.

#define SPLIT_WIDTH   5

Definition at line 261 of file window.h.

#define WINDOW_CREATOR ( WND_CLASS   )     ((Window::CREATORFUNC) WindowCreator<WND_CLASS>::window_creator)

Definition at line 194 of file window.h.

#define WINDOW_CREATOR_INFO ( WND_CLASS,
INFO_CLASS   )     ((Window::CREATORFUNC_INFO) WindowCreatorInfo<WND_CLASS, INFO_CLASS>::window_creator)

Definition at line 207 of file window.h.

Referenced by WebChildWindow::create().

#define WINDOW_DYNAMIC_CAST ( CLASS,
hwnd   )     TypeCheck<CLASS>::dyn_cast(Window::get_window(hwnd))

Definition at line 158 of file window.h.

#define WINMSG_TASKBARCREATED   TEXT("TaskbarCreated")

Definition at line 968 of file window.h.


Typedef Documentation

typedef set<HWND> WindowSet

Definition at line 29 of file window.h.


Enumeration Type Documentation

anonymous enum

Enumerator:
TRAYBUTTON_LEFT 
TRAYBUTTON_RIGHT 
TRAYBUTTON_MIDDLE 

Definition at line 964 of file window.h.

enum RESIZE_FLAGS

Flags to specify how to move and resize controls when resizing their parent window.

Enumerator:
MOVE_LEFT 
MOVE_RIGHT 
MOVE_TOP 
MOVE_BOTTOM 
MOVE_X 
MOVE_Y 
RESIZE_X 
RESIZE_Y 
MOVE 
RESIZE 

Definition at line 437 of file window.h.

00437                   {
00438     MOVE_LEFT   = 0x1,
00439     MOVE_RIGHT  = 0x2,
00440     MOVE_TOP    = 0x4,
00441     MOVE_BOTTOM = 0x8,
00442 
00443     MOVE_X  =  MOVE_LEFT | MOVE_RIGHT,
00444     MOVE_Y  =  MOVE_TOP | MOVE_BOTTOM,
00445     RESIZE_X=  MOVE_RIGHT,
00446     RESIZE_Y=  MOVE_BOTTOM,
00447 
00448     MOVE    = MOVE_X   | MOVE_Y,
00449     RESIZE  = RESIZE_X | RESIZE_Y
00450 };


Function Documentation

void DrawGrayText ( HDC  hdc,
LPRECT  pRect,
LPCTSTR  text,
int  dt_flags 
)

int ListView_FindItemPara ( HWND  list_ctrl,
LPARAM  param 
) [inline]

Definition at line 910 of file window.h.

00911 {
00912     LVFINDINFO fi;
00913 
00914     fi.flags = LVFI_PARAM;
00915     fi.lParam = param;
00916 
00917     return ListView_FindItem(list_ctrl, (unsigned)-1, &fi);
00918 }

int ListView_GetFocusedItem ( HWND  list_ctrl  )  [inline]

Definition at line 920 of file window.h.

00921 {
00922     int idx = ListView_GetItemCount(list_ctrl);
00923 
00924     while(--idx >= 0)
00925         if (ListView_GetItemState(list_ctrl, idx, LVIS_FOCUSED))
00926             break;
00927 
00928     return idx;
00929 }

int ListView_GetItemData ( HWND  list_ctrl,
int  idx 
) [inline]

Definition at line 897 of file window.h.

00898 {
00899     LV_ITEM item;
00900 
00901     item.mask = LVIF_PARAM;
00902     item.iItem = idx;
00903 
00904     if (!ListView_GetItem(list_ctrl, &item))
00905         return 0;
00906 
00907     return item.lParam;
00908 }

LPARAM TreeView_GetItemData ( HWND  hwndTreeView,
HTREEITEM  hItem 
) [inline]

Definition at line 950 of file window.h.

00951 {
00952     TVITEM tvItem;
00953 
00954     tvItem.mask = TVIF_PARAM;
00955     tvItem.hItem = hItem;
00956 
00957     if (!TreeView_GetItem(hwndTreeView, &tvItem))
00958         return 0;
00959 
00960     return tvItem.lParam;
00961 }


IBrowser Source Code Documentation
generated on 18.09.2008 by doxygen

Homepage