29 #include "../../idlib/precompiled.h"
39 static char THIS_FILE[] = __FILE__;
47 if (g_EntityListDlg.GetSafeHwnd() ==
NULL) {
51 g_EntityListDlg.ShowWindow(SW_SHOW);
65 CDialog::DoDataExchange(pDX);
79 ON_LBN_DBLCLK(IDC_LIST_ENTITIES, OnLbnDblclkListEntities)
87 int index = listEntities.GetCurSel();
88 if (index != LB_ERR) {
89 entity_t *ent =
reinterpret_cast<entity_t*
>(listEntities.GetItemDataPtr(index));
92 Select_Brush (ent->
brushes.onext);
102 if (index != LB_ERR) {
109 if (nID == SC_CLOSE) {
120 CDialog::OnInitDialog();
126 m_lstEntity.InsertColumn(0,
"Key", LVCFMT_LEFT, rct.Width() / 2);
127 m_lstEntity.InsertColumn(1,
"Value", LVCFMT_LEFT, rct.Width() / 2);
142 if (index != LB_ERR) {
virtual void DoDataExchange(CDataExchange *pDX)
void WINAPI Sys_UpdateWindows(int nBits)
CONST PIXELFORMATDESCRIPTOR UINT
const idStr & GetKey(void) const
CEntityListDlg g_EntityListDlg
GLuint GLuint GLsizei count
#define IDD_DLG_ENTITYLIST
#define IDC_LIST_ENTITIES
virtual BOOL OnInitDialog()
afx_msg void OnLbnSelchangeListEntities()
const idStr & GetValue(void) const
afx_msg void OnSysCommand(UINT nID, LPARAM lParam)
const idKeyValue * GetKeyVal(int index) const
afx_msg void OnLbnDblclkListEntities()
CEntityListDlg(CWnd *pParent=NULL)
int GetNumKeyVals(void) const