Click here to Skip to main content
Sign Up to vote bad
good
See more: VC8.0C++VC++
hi All,
 
I do not understant why there is no any control about Radio button in WTL library , maybe I need rewrite it wholy , i fact , I want to disable a radio button , and then look like a gray button , but I can't find any method to do , so any one can help me ? thanks in advance
Posted 16 Jun '12 - 21:34


2 solutions

from the enclosing dialog
 
GetDlgItem(youControlId).EnableWindow(FALSE);
 
should do it
 
WTL is about making windows calls closer to the OS, and removing all the complexity and chaff that MFC adds
  Permalink  
To Barneyman,
 
thank you suggestion , but I also to "and then look like a gray button" , EnableWindow(false) only not receive key and mouse message
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 OriginalGriff 206
1 Sergey Alexandrovich Kryukov 175
2 Richard MacCutchan 145
3 Tadit Dash 140
4 Santhosh G_ 125
0 Sergey Alexandrovich Kryukov 10,294
1 OriginalGriff 7,955
2 CPallini 4,201
3 Rohan Leuva 3,522
4 Maciej Los 3,159


Advertise | Privacy | Mobile
Web04 | 2.6.130523.1 | Last Updated 17 Jun 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid