#include <windows.h>#include <commctrl.h>#include "ut_string.h"#include "ut_assert.h"#include "ut_debugmsg.h"#include "ut_Win32OS.h"#include "xap_App.h"#include "xap_Win32App.h"#include "xap_Win32FrameImpl.h"#include "ap_Dialog_Id.h"#include "ap_Strings.h"#include "ap_Preview_Paragraph.h"#include "ap_Win32Dialog_Paragraph.h"#include "xap_Win32PreviewWidget.h"#include "xap_Win32LabelledSeparator.h"#include "gr_Win32Graphics.h"#include "xap_Win32DialogHelper.h"#include "ap_Win32Resources.rc2"Classes | |
| struct | _tabParam |
Defines | |
| #define | GWL(hwnd) (AP_Win32Dialog_Paragraph*)GetWindowLongPtrW((hwnd), DWLP_USER) |
| #define | SWL(hwnd, d) SetWindowLongPtrW((hwnd), DWLP_USER,(LONG_PTR)(d)) |
| #define | _DS(c, s) setDlgItemText(hWnd, AP_RID_DIALOG_##c,pSS->getValue(AP_STRING_ID_##s)) |
| #define | _DSX(c, s) setDlgItemText(hWnd, AP_RID_DIALOG_##c,pSS->getValue(XAP_STRING_ID_##s)) |
| #define | _GV(s) (pSS->getValue(AP_STRING_ID_##s)) |
| #define | _CAS(w, s) |
| #define | _SST(c, i) setDlgItemText(hWnd,AP_RID_DIALOG_##c,_getSpinItemValue(i)) |
| #define | _CDB(c, i) CheckDlgButton(hWnd,AP_RID_DIALOG_##c,_getCheckItemValue(i)) |
| #define | _COMBO(c, i) |
| #define | _EDIT(c, i) |
| #define | _CHECK(c, i) |
| #define | _SPIN(w, c, i) |
| #define | _syncSPIN(w, c, i) |
Typedefs | |
| typedef struct _tabParam | TabParam |
| #define _CAS | ( | w, | ||
| s | ||||
| ) |
Referenced by AP_Win32Dialog_Paragraph::_onInitTab().
| #define _CDB | ( | c, | ||
| i | ||||
| ) | CheckDlgButton(hWnd,AP_RID_DIALOG_##c,_getCheckItemValue(i)) |
Referenced by AP_Win32Dialog_Paragraph::_onInitTab().
| #define _CHECK | ( | c, | ||
| i | ||||
| ) |
case AP_RID_DIALOG_##c: \ _setCheckItemValue(i,(tCheckState) IsDlgButtonChecked(hWnd,AP_RID_DIALOG_##c)); \ return 1; \
Referenced by AP_Win32Dialog_Paragraph::_onCommand().
| #define _COMBO | ( | c, | ||
| i | ||||
| ) |
case AP_RID_DIALOG_##c: \ switch (HIWORD(wParam)) \ { \ case CBN_SELCHANGE: \ _setMenuItemValue(i,SendMessageW(hWndCtrl,CB_GETCURSEL,0,0)); \ return 1; \ \ default: \ return 0; \ } \ break; \
Referenced by AP_Win32Dialog_Paragraph::_onCommand().
Referenced by AP_Win32Dialog_Paragraph::_onInitDialog(), and AP_Win32Dialog_Paragraph::_onInitTab().
Referenced by AP_Win32Dialog_Paragraph::_onInitDialog().
| #define _EDIT | ( | c, | ||
| i | ||||
| ) |
case AP_RID_DIALOG_##c: \ switch (wNotifyCode) \ { \ case EN_CHANGE: \ m_bEditChanged = true; \ return 1; \ \ case EN_KILLFOCUS: \ char buf[SPIN_BUF_TEXT_SIZE]; \ GetWindowText(hWndCtrl,buf,SPIN_BUF_TEXT_SIZE); \ _setSpinItemValue(i,buf); \ _syncControls(i); \ m_bEditChanged = false; \ return 1; \ \ default: \ return 0; \ } \ break; \
Referenced by AP_Win32Dialog_Paragraph::_onCommand().
Referenced by AP_Win32Dialog_Paragraph::_onInitDialog().
| #define _SPIN | ( | w, | ||
| c, | ||||
| i | ||||
| ) |
case AP_RID_DIALOG_PARA_SPIN_##c: \ if (m_bEditChanged) \ { \ GetDlgItemText(w,AP_RID_DIALOG_PARA_EDIT_##c,buf,SPIN_BUF_TEXT_SIZE); \ _setSpinItemValue(i,buf); \ m_bEditChanged = false; \ } \ _doSpin(i, (0 - (UT_sint32) pnmud->iDelta)); \ break; \
Referenced by AP_Win32Dialog_Paragraph::_onDeltaPos().
| #define _SST | ( | c, | ||
| i | ||||
| ) | setDlgItemText(hWnd,AP_RID_DIALOG_##c,_getSpinItemValue(i)) |
Referenced by AP_Win32Dialog_Paragraph::_onInitTab().
| #define _syncSPIN | ( | w, | ||
| c, | ||||
| i | ||||
| ) |
case i: \ SetDlgItemText(w,AP_RID_DIALOG_##c,_getSpinItemValue(i)); \ break; \
Referenced by AP_Win32Dialog_Paragraph::_syncControls().
| #define GWL | ( | hwnd | ) | (AP_Win32Dialog_Paragraph*)GetWindowLongPtrW((hwnd), DWLP_USER) |
Referenced by AP_Win32Dialog_Paragraph::s_dlgProc(), and AP_Win32Dialog_Paragraph::s_tabProc().
| #define SWL | ( | hwnd, | ||
| d | ||||
| ) | SetWindowLongPtrW((hwnd), DWLP_USER,(LONG_PTR)(d)) |
Referenced by AP_Win32Dialog_Paragraph::s_dlgProc(), and AP_Win32Dialog_Paragraph::s_tabProc().
1.7.1