Click here to Skip to main content
15,898,035 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Why whould this be lost?... Pin
Dave Bryant18-Mar-03 13:00
Dave Bryant18-Mar-03 13:00 
GeneralRe: Why whould this be lost?... Pin
CherezZaboro18-Mar-03 13:11
CherezZaboro18-Mar-03 13:11 
GeneralRe: Why whould this be lost?... Pin
Dave Bryant18-Mar-03 15:03
Dave Bryant18-Mar-03 15:03 
GeneralRe: Why whould this be lost?... Pin
CherezZaboro18-Mar-03 18:23
CherezZaboro18-Mar-03 18:23 
GeneralListView Colors..weird Pin
Bengi18-Mar-03 11:10
Bengi18-Mar-03 11:10 
GeneralRe: ListView Colors..weird Pin
Bengi18-Mar-03 23:18
Bengi18-Mar-03 23:18 
GeneralRe: ListView Colors..weird Pin
Alexinuk18-Mar-03 23:23
Alexinuk18-Mar-03 23:23 
GeneralCButton and DialogBar Pin
MemLeak18-Mar-03 10:48
MemLeak18-Mar-03 10:48 
Hi!

I have a CDialogBar derived class, and I want to enable/disable some button in it.

Inside of my class, I catch the click button events for my buttons.

ON_BN_CLICKED(IDOKUNDCERVCREAT, OnBnClickedOk)
ON_BN_CLICKED(IDC_COMPUTEUNDCERVCREAT, OnBnClickedCompute)
ON_BN_CLICKED(IDC_DESTROYUNDCERVCREAT, OnBnClickedDestroy)

I have connected my buttons with my variables:

DDX_Control(pDX, IDOKUNDCERVCREAT, m_wndOk);
DDX_Control(pDX, IDC_COMPUTEUNDCERVCREAT, m_wndCompute);
DDX_Control(pDX, IDC_DESTROYUNDCERVCREAT, m_wndDestroy);

in my *.h I have:

CButton m_wndOk;
CButton m_wndCompute;
CButton m_wndDestroy;

So, in my OnButtonClickFunct.. I want to do things like:

m_wndOk.EnableWindow(false);
m_wndCompute.EnableWindow(false);

Right now, if I do that, my button dont enable/disable.

thanks for the help Wink | ;)

Everything's beautiful if you look at it long enough...
GeneralRe: CButton and DialogBar Pin
Ravi Bhavnani18-Mar-03 10:54
professionalRavi Bhavnani18-Mar-03 10:54 
GeneralRe: CButton and DialogBar Pin
MemLeak19-Mar-03 7:38
MemLeak19-Mar-03 7:38 
GeneralRe: CButton and DialogBar Pin
Ravi Bhavnani19-Mar-03 8:14
professionalRavi Bhavnani19-Mar-03 8:14 
GeneralAviCap Questions Pin
User 1278218-Mar-03 10:13
User 1278218-Mar-03 10:13 
GeneralSAPI 5.1 and Win98... Pin
JoeSox18-Mar-03 9:42
JoeSox18-Mar-03 9:42 
GeneralRe: SAPI 5.1 and Win98... Pin
Tim Smith18-Mar-03 9:54
Tim Smith18-Mar-03 9:54 
GeneralRe: SAPI 5.1 and Win98... Pin
JoeSox19-Mar-03 9:43
JoeSox19-Mar-03 9:43 
GeneralVery interesting Question about Compilers Pin
Joel Holdsworth18-Mar-03 9:36
Joel Holdsworth18-Mar-03 9:36 
GeneralRe: Very interesting Question about Compilers Pin
Chris Losinger18-Mar-03 10:31
professionalChris Losinger18-Mar-03 10:31 
GeneralRe: Very interesting Question about Compilers Pin
Joel Holdsworth18-Mar-03 10:45
Joel Holdsworth18-Mar-03 10:45 
GeneralRe: Very interesting Question about Compilers Pin
Neville Franks18-Mar-03 10:55
Neville Franks18-Mar-03 10:55 
GeneralRe: Very interesting Question about Compilers Pin
Joel Holdsworth18-Mar-03 11:26
Joel Holdsworth18-Mar-03 11:26 
GeneralRe: Very interesting Question about Compilers Pin
Neville Franks18-Mar-03 12:29
Neville Franks18-Mar-03 12:29 
GeneralON_THREAD_MESSAGE Pin
clintsinger18-Mar-03 9:20
clintsinger18-Mar-03 9:20 
GeneralRe: ON_THREAD_MESSAGE Pin
Dave Bryant18-Mar-03 9:38
Dave Bryant18-Mar-03 9:38 
QuestionWell, when I use cstringVar.GetBuffer() I need to call ReleaseBuffer, but if I (LPTSTR)(LPCTSTR)cstringVar? Pin
Joan M18-Mar-03 9:10
professionalJoan M18-Mar-03 9:10 
AnswerRe: Well, when I use cstringVar.GetBuffer() I need to call ReleaseBuffer, but if I (LPTSTR)(LPCTSTR)cstringVar? Pin
Dave Bryant18-Mar-03 9:33
Dave Bryant18-Mar-03 9:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.