BWAPI
Classes | Namespaces | Defines | Enumerations | Functions
trunk/bwapi/BWAPI/Source/BW/Dialog.h File Reference
#include <windows.h>
#include "offsets.h"
Include dependency graph for Dialog.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  BW::pt
struct  BW::bitmap
struct  BW::dlgEvent
struct  BW::fntChr
struct  BW::fntHead
class  BW::dialog
union  BW::dialog::_u
struct  BW::dialog::_u::_ctrl
struct  BW::dialog::_u::_dlg
struct  BW::dialog::_u::_btn
struct  BW::dialog::_u::_optn
struct  BW::dialog::_u::_edit
struct  BW::dialog::_u::_scroll
struct  BW::dialog::_u::_list

Namespaces

namespace  BW
namespace  BW::ctrls

Defines

#define CTRL_UPDATE   0x00000001
#define CTRL_DISABLED   0x00000002
#define CTRL_ACTIVE   0x00000004
#define CTRL_VISIBLE   0x00000008
#define CTRL_EVENTS   0x00000010
#define CTRL_BTN_CANCEL   0x00000040
#define CTRL_BTN_NO_SOUND   0x00000080
#define CTRL_BTN_VIRT_HOTKEY   0x00000100
#define CTRL_BTN_HOTKEY   0x00000200
#define CTRL_FONT_SMALLEST   0x00000400
#define CTRL_FONT_LARGE   0x00000800
#define CTRL_TRANSPARENT   0x00002000
#define CTRL_FONT_LARGEST   0x00004000
#define CTRL_FONT_SMALL   0x00010000
#define CTRL_PLAIN   0x00020000
#define CTRL_TRANSLUCENT   0x00040000
#define CTRL_BTN_DEFAULT   0x00080000
#define CTRL_TOP   0x00100000
#define CTRL_HALIGN_LEFT   0x00200000
#define CTRL_HALIGN_RIGHT   0x00400000
#define CTRL_HALIGN_CENTER   0x00800000
#define CTRL_VALIGN_TOP   0x01000000
#define CTRL_VALIGN_MIDDLE   0x02000000
#define CTRL_VALIGN_BOTTOM   0x04000000
#define CTRL_DLG_NOREDRAW   0x10000000
#define CTRL_REVERSE   0x10000000
#define CTRL_USELOCALGRAPHIC   0x20000000
#define CTRL_DLG_ACTIVE   0x40000000
#define CTRL_LBOX_NORECALC   0x80000000
#define BW_EVN_KEYFIRST   0
#define BW_EVN_KEYDOWN   0
#define BW_EVN_KEYRPT   1
#define BW_EVN_KEYREPEAT   1
#define BW_EVN_KEYUP   2
#define BW_EVN_MOUSEMOVE   3
#define BW_EVN_MOUSEFIRST   3
#define BW_EVN_LBUTTONDOWN   4
#define BW_EVN_LBUTTONUP   5
#define BW_EVN_LBUTTONDBLCLK   6
#define BW_EVN_RBUTTONDOWN   7
#define BW_EVN_RBUTTONUP   8
#define BW_EVN_RBUTTONDBLCLK   9
#define BW_EVN_MBUTTONDOWN   10
#define BW_EVN_MBUTTONUP   11
#define BW_EVN_MBUTTONDBLCLK   12
#define BW_EVN_IDLE   13
#define BW_EVN_USER   14
#define BW_EVN_CHAR   15
#define BW_EVN_SYSCHAR   16
#define BW_EVN_WHEELUP   17
#define BW_EVN_WHEELDWN   18
#define BW_USER_CREATE   0
#define BW_USER_DESTROY   1
#define BW_USER_ACTIVATE   2
#define BW_USER_HOTKEY   3
#define BW_USER_MOUSEMOVE   4
#define BW_USER_PREV   5
#define BW_USER_NEXT   6
#define BW_USER_UNK_7   7
#define BW_USER_UNK_8   8
#define BW_USER_MOUSEENTER   9
#define BW_USER_INIT   10
#define BW_USER_SELECT   11
#define BW_USER_UNK_12   12
#define BW_USER_SHOW   13
#define BW_USER_HIDE   14
#define BW_USER_SCROLLUP   15
#define BW_USER_SCROLLDOWN   16

Enumerations

enum  BW::ctrls::Enum {
  BW::ctrls::cDLG = 0, BW::ctrls::cDFLTBTN = 1, BW::ctrls::cBUTTON = 2, BW::ctrls::cOPTION = 3,
  BW::ctrls::cCHKBOX = 4, BW::ctrls::cIMAGE = 5, BW::ctrls::cHSCROLL = 6, BW::ctrls::cVSCROLL = 7,
  BW::ctrls::cEDIT = 8, BW::ctrls::cLSTATIC = 9, BW::ctrls::cRSTATIC = 10, BW::ctrls::cCSTATIC = 11,
  BW::ctrls::cLIST = 12, BW::ctrls::cCOMBO = 13, BW::ctrls::cFLCBTN = 14, BW::ctrls::max = cFLCBTN
}

Functions

dialog * BW::CreateDialogWindow (const char *pszText, WORD wLeft, WORD wTop, WORD wWidth, WORD wHeight)
dialog * BW::FindDialogGlobal (const char *pszName)
int BW::GetTextWidth (const char *pszString, BYTE bSize)
int BW::GetTextHeight (const char *pszString, BYTE bSize)
bool BW::BlitText (const char *pszString, bitmap *dst, int x, int y, BYTE bSize)

Define Documentation

#define BW_EVN_CHAR   15
#define BW_EVN_IDLE   13
#define BW_EVN_KEYDOWN   0
#define BW_EVN_KEYFIRST   0
#define BW_EVN_KEYREPEAT   1
#define BW_EVN_KEYRPT   1
#define BW_EVN_KEYUP   2
#define BW_EVN_LBUTTONDBLCLK   6
#define BW_EVN_LBUTTONDOWN   4
#define BW_EVN_LBUTTONUP   5
#define BW_EVN_MBUTTONDBLCLK   12
#define BW_EVN_MBUTTONDOWN   10
#define BW_EVN_MBUTTONUP   11
#define BW_EVN_MOUSEFIRST   3
#define BW_EVN_MOUSEMOVE   3
#define BW_EVN_RBUTTONDBLCLK   9
#define BW_EVN_RBUTTONDOWN   7
#define BW_EVN_RBUTTONUP   8
#define BW_EVN_SYSCHAR   16
#define BW_EVN_USER   14
#define BW_EVN_WHEELDWN   18
#define BW_EVN_WHEELUP   17
#define BW_USER_ACTIVATE   2
#define BW_USER_CREATE   0
#define BW_USER_DESTROY   1
#define BW_USER_HIDE   14
#define BW_USER_HOTKEY   3
#define BW_USER_INIT   10
#define BW_USER_MOUSEENTER   9
#define BW_USER_MOUSEMOVE   4
#define BW_USER_NEXT   6
#define BW_USER_PREV   5
#define BW_USER_SCROLLDOWN   16
#define BW_USER_SCROLLUP   15
#define BW_USER_SELECT   11
#define BW_USER_SHOW   13
#define BW_USER_UNK_12   12
#define BW_USER_UNK_7   7
#define BW_USER_UNK_8   8
#define CTRL_ACTIVE   0x00000004
#define CTRL_BTN_CANCEL   0x00000040
#define CTRL_BTN_DEFAULT   0x00080000
#define CTRL_BTN_HOTKEY   0x00000200
#define CTRL_BTN_NO_SOUND   0x00000080
#define CTRL_BTN_VIRT_HOTKEY   0x00000100
#define CTRL_DISABLED   0x00000002
#define CTRL_DLG_ACTIVE   0x40000000
#define CTRL_DLG_NOREDRAW   0x10000000
#define CTRL_EVENTS   0x00000010
#define CTRL_FONT_LARGE   0x00000800
#define CTRL_FONT_LARGEST   0x00004000
#define CTRL_FONT_SMALL   0x00010000
#define CTRL_FONT_SMALLEST   0x00000400
#define CTRL_HALIGN_CENTER   0x00800000
#define CTRL_HALIGN_LEFT   0x00200000
#define CTRL_HALIGN_RIGHT   0x00400000
#define CTRL_LBOX_NORECALC   0x80000000
#define CTRL_PLAIN   0x00020000
#define CTRL_REVERSE   0x10000000
#define CTRL_TOP   0x00100000
#define CTRL_TRANSLUCENT   0x00040000
#define CTRL_TRANSPARENT   0x00002000
#define CTRL_UPDATE   0x00000001
#define CTRL_USELOCALGRAPHIC   0x20000000
#define CTRL_VALIGN_BOTTOM   0x04000000
#define CTRL_VALIGN_MIDDLE   0x02000000
#define CTRL_VALIGN_TOP   0x01000000
#define CTRL_VISIBLE   0x00000008
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines