Skip to content

Commit

Permalink
fixed testing of RTL layouts
Browse files Browse the repository at this point in the history
  • Loading branch information
ppescher committed Dec 30, 2017
1 parent 80172c1 commit 15b386b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions ResizableComboBox/DemoDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ void CDemoDlg::DoDataExchange(CDataExchange* pDX)

BEGIN_MESSAGE_MAP(CDemoDlg, CResizableDialog)
//{{AFX_MSG_MAP(CDemoDlg)
ON_WM_CREATE()
ON_WM_NCCREATE()
ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
ON_BN_CLICKED(IDC_BUTTON2, OnButton2)
ON_BN_CLICKED(IDC_BUTTON3, OnButton3)
Expand Down Expand Up @@ -68,14 +68,14 @@ BOOL CDemoDlg::OnInitDialog()
#define WS_EX_LAYOUTRTL 0x00400000
#endif

int CDemoDlg::OnCreate(LPCREATESTRUCT lpCreateStruct)
BOOL CDemoDlg::OnNcCreate(LPCREATESTRUCT lpCreateStruct)
{
// ModifyStyleEx(0, WS_EX_LAYOUTRTL);

if (CResizableDialog::OnCreate(lpCreateStruct) == -1)
return -1;
if (!CResizableDialog::OnNcCreate(lpCreateStruct))
return FALSE;

return 0;
return TRUE;
}

void CDemoDlg::OnButton1()
Expand Down
2 changes: 1 addition & 1 deletion ResizableComboBox/DemoDlg.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class CDemoDlg : public CResizableDialog
// Generated message map functions
//{{AFX_MSG(CDemoDlg)
virtual BOOL OnInitDialog();
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg BOOL OnNcCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnButton1();
afx_msg void OnButton2();
afx_msg void OnButton3();
Expand Down

0 comments on commit 15b386b

Please sign in to comment.