Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Usage of BS_XT_SEMIFLAT in CFileDialog?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Usage of BS_XT_SEMIFLAT in CFileDialog?

 Post Reply Post Reply
Author
Message
sureshalways View Drop Down
Newbie
Newbie
Avatar

Joined: 18 October 2003
Location: India
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote sureshalways Quote  Post ReplyReply Direct Link To This Post Topic: Usage of BS_XT_SEMIFLAT in CFileDialog?
    Posted: 18 October 2003 at 2:25am

Hi,

   I'm using codejock software for giving more enhancement to the user.  I'm using CXTButton style for all the Buttons instead of CButton.  I'm using BS_XT_SEMIFLAT style for all buttons.  Now I'm facing a problem in CFileDialog.  In Open/Save As CFileDialog having Open/Save and Close Button, how do I change the buttons style using CXTButton?

 

Any idea please

 

Suresh

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 19 October 2003 at 3:21am

 

1. Create CFileDialogEx inherited from CFileDialog

2.Add WM_INITDIALOG handler:

BOOL CFileDialogEx::OnInitDialog()

{

CFileDialog::OnInitDialog();

m_wndDialog.SubclassWindow(GetParent()->m_hWnd);

m_wndOk.SubclassDlgItem(IDOK, &m_wndDialog);

m_wndOk.SetXButtonStyle(BS_XT_SEMIFLAT);

m_wndCancel.SubclassDlgItem(IDCANCEL, &m_wndDialog);

m_wndCancel.SetXButtonStyle(BS_XT_SEMIFLAT);

return TRUE;

}

 

3. Add members to the header

 

CXTButton m_wndOk;

CXTButton m_wndCancel;

CWnd m_wndDialog;



Edited by oleg
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.