Button enabled ?

How can I find out if a button (on a dialog) had been enabled / disabled


0
Hccnet (30)
2/2/2004 9:10:48 AM
vc.mfc 33608 articles. 0 followers. Follow

3 Replies
883 Views

Similar Articles

[PageSpeed] 6

Use CWnd::GetStyle() and check for WS_DISABLED

Normand

"JackRnl" <Hccnet@Runit.Scarlet.nl> a �crit dans le message de news:
401e13f8$0$138$3a628fcd@reader2.nntp.hccnet.nl...
> How can I find out if a button (on a dialog) had been enabled / disabled
>
>


0
NoEmail9920 (149)
2/2/2004 9:17:34 AM
  CButton class is derived from CWnd.

  So you can  check that using CWnd::IsWindowEnabled() function.


0
yjkim (7)
2/2/2004 9:39:57 AM
Hello,

Try this


BOOL bEnable  = mybutt.EnableWindow();

if(bEnable)
{
//Do something now that the window is enabled
.....
.....
//Now it's time to disable the window again
bEnable = mybutt.EnableWindow(FALSE);
}

With Regards
R.Selvam
0
2/2/2004 9:51:06 AM
Reply:

Similar Artilces: