@@ -42,7 +42,7 @@ LRESULT CMirrorRotateDialog::OnInitDialog(UINT nMsg, WPARAM wParam, LPARAM lPara
42
42
{
43
43
CheckDlgButton (IDD_MIRRORROTATERB1, BST_CHECKED);
44
44
CheckDlgButton (IDD_MIRRORROTATERB4, BST_CHECKED);
45
- return 0 ;
45
+ return TRUE ;
46
46
}
47
47
48
48
LRESULT CMirrorRotateDialog::OnClose (UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
@@ -74,6 +74,9 @@ LRESULT CMirrorRotateDialog::OnCancel(WORD wNotifyCode, WORD wID, HWND hWndCtl,
74
74
75
75
LRESULT CMirrorRotateDialog::OnRadioButton3 (WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled)
76
76
{
77
+ if (IsDlgButtonChecked (IDD_MIRRORROTATERB3) != BST_CHECKED)
78
+ return 0 ;
79
+
77
80
::EnableWindow (GetDlgItem(IDD_MIRRORROTATERB4), TRUE);
78
81
::EnableWindow (GetDlgItem(IDD_MIRRORROTATERB5), TRUE);
79
82
::EnableWindow (GetDlgItem(IDD_MIRRORROTATERB6), TRUE);
@@ -82,6 +85,12 @@ LRESULT CMirrorRotateDialog::OnRadioButton3(WORD wNotifyCode, WORD wID, HWND hWn
82
85
83
86
LRESULT CMirrorRotateDialog::OnRadioButton12 (WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled)
84
87
{
88
+ if (IsDlgButtonChecked (IDD_MIRRORROTATERB1) != BST_CHECKED &&
89
+ IsDlgButtonChecked (IDD_MIRRORROTATERB2) != BST_CHECKED)
90
+ {
91
+ return 0 ;
92
+ }
93
+
85
94
::EnableWindow (GetDlgItem(IDD_MIRRORROTATERB4), FALSE);
86
95
::EnableWindow (GetDlgItem(IDD_MIRRORROTATERB5), FALSE);
87
96
::EnableWindow (GetDlgItem(IDD_MIRRORROTATERB6), FALSE);
@@ -122,7 +131,7 @@ LRESULT CAttributesDialog::OnInitDialog(UINT nMsg, WPARAM wParam, LPARAM lParam,
122
131
strRes.Format (IDS_PRINTRES, ROUND (PpcmFromDpi (g_xDpi)), ROUND (PpcmFromDpi (g_yDpi)));
123
132
124
133
SetDlgItemText (IDD_ATTRIBUTESTEXT8, strRes);
125
- return 0 ;
134
+ return TRUE ;
126
135
}
127
136
128
137
LRESULT CAttributesDialog::OnClose (UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
@@ -156,6 +165,9 @@ LRESULT CAttributesDialog::OnDefault(WORD wNotifyCode, WORD wID, HWND hWndCtl, B
156
165
157
166
LRESULT CAttributesDialog::OnRadioButton1 (WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled)
158
167
{
168
+ if (IsDlgButtonChecked (IDD_ATTRIBUTESRB1) != BST_CHECKED)
169
+ return 0 ;
170
+
159
171
CString strNum;
160
172
strNum.Format (_T (" %.3lf" ), newWidth / g_xDpi);
161
173
SetDlgItemText (IDD_ATTRIBUTESEDIT1, strNum);
@@ -166,6 +178,9 @@ LRESULT CAttributesDialog::OnRadioButton1(WORD wNotifyCode, WORD wID, HWND hWndC
166
178
167
179
LRESULT CAttributesDialog::OnRadioButton2 (WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled)
168
180
{
181
+ if (IsDlgButtonChecked (IDD_ATTRIBUTESRB2) != BST_CHECKED)
182
+ return 0 ;
183
+
169
184
CString strNum;
170
185
strNum.Format (_T (" %.3lf" ), newWidth / PpcmFromDpi (g_xDpi));
171
186
SetDlgItemText (IDD_ATTRIBUTESEDIT1, strNum);
@@ -176,6 +191,9 @@ LRESULT CAttributesDialog::OnRadioButton2(WORD wNotifyCode, WORD wID, HWND hWndC
176
191
177
192
LRESULT CAttributesDialog::OnRadioButton3 (WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled)
178
193
{
194
+ if (IsDlgButtonChecked (IDD_ATTRIBUTESRB3) != BST_CHECKED)
195
+ return 0 ;
196
+
179
197
SetDlgItemInt (IDD_ATTRIBUTESEDIT1, newWidth, FALSE );
180
198
SetDlgItemInt (IDD_ATTRIBUTESEDIT2, newHeight, FALSE );
181
199
return 0 ;
@@ -239,7 +257,7 @@ LRESULT CStretchSkewDialog::OnInitDialog(UINT nMsg, WPARAM wParam, LPARAM lParam
239
257
SetDlgItemInt (IDD_STRETCHSKEWEDITVSTRETCH, 100 , FALSE );
240
258
SetDlgItemInt (IDD_STRETCHSKEWEDITHSKEW, 0 , FALSE );
241
259
SetDlgItemInt (IDD_STRETCHSKEWEDITVSKEW, 0 , FALSE );
242
- return 0 ;
260
+ return TRUE ;
243
261
}
244
262
245
263
LRESULT CStretchSkewDialog::OnClose (UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
0 commit comments