Print Page | Close Window

Usage of BS_XT_SEMIFLAT in CFileDialog?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=180
Printed Date: 26 June 2024 at 11:50am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Usage of BS_XT_SEMIFLAT in CFileDialog?
Posted By: sureshalways
Subject: Usage of BS_XT_SEMIFLAT in CFileDialog?
Date 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




Replies:
Posted By: Oleg
Date 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;




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net