Click here to Skip to main content
16,010,394 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDialog Boxes Pin
Mark Ryall8-Mar-02 2:26
Mark Ryall8-Mar-02 2:26 
GeneralRe: Dialog Boxes Pin
Tomasz Sowinski8-Mar-02 2:31
Tomasz Sowinski8-Mar-02 2:31 
GeneralRe: Dialog Boxes Pin
Joaquín M López Muñoz8-Mar-02 2:38
Joaquín M López Muñoz8-Mar-02 2:38 
GeneralRe: Dialog Boxes Pin
Carlos Antollini8-Mar-02 2:50
Carlos Antollini8-Mar-02 2:50 
GeneralRe: Dialog Boxes Pin
Mark Ryall8-Mar-02 3:02
Mark Ryall8-Mar-02 3:02 
GeneralRe: Dialog Boxes Pin
Carlos Antollini8-Mar-02 3:04
Carlos Antollini8-Mar-02 3:04 
GeneralRe: Dialog Boxes Pin
Jon Newman8-Mar-02 7:27
Jon Newman8-Mar-02 7:27 
GeneralRe: Dialog Boxes Pin
Jonathan Craig8-Mar-02 4:53
Jonathan Craig8-Mar-02 4:53 
You should be able to access any control in a dialog box from the OnInitDialog method. All controls have been created at this point. UNLESS you have subclassed any of the controls (i.e. you created member variables for them with Class Wizard). They do not get connected until the first call to DoDataExchange. But this gets called by CDialog::OnInitDialog(). Use the code snippet below as a reference:
BOOL CCreateReportDlg::OnInitDialog() 
{
  //Can't access subclassed controls yet...
 
  CDialog::OnInitDialog();
  // TODO: Add extra initialization here
 
  //Now you can access subclassed controls...
}
Hope this helps. Smile | :)

Jonathan Craig
www.mcw-tech.com
GeneralRe: Dialog Boxes Pin
Ravi Bhavnani8-Mar-02 6:41
professionalRavi Bhavnani8-Mar-02 6:41 
GeneralRe: Dialog Boxes Pin
Jonathan Craig8-Mar-02 7:14
Jonathan Craig8-Mar-02 7:14 
GeneralRe: Dialog Boxes Pin
Gaurika Wijeratne8-Mar-02 6:29
Gaurika Wijeratne8-Mar-02 6:29 
QuestionHow do I monitor per process CPU usage on Windows 9x? Pin
8-Mar-02 2:24
suss8-Mar-02 2:24 
AnswerRe: How do I monitor per process CPU usage on Windows 9x? Pin
Tomasz Sowinski8-Mar-02 2:29
Tomasz Sowinski8-Mar-02 2:29 
GeneralRe: How do I monitor per process CPU usage on Windows 9x? Pin
8-Mar-02 23:44
suss8-Mar-02 23:44 
QuestionUsing MFC CStringList as a COM collection with ATL? Pin
Gavin Jerman8-Mar-02 1:03
Gavin Jerman8-Mar-02 1:03 
GeneralLinked list destruction problem Pin
Andrew Hoole8-Mar-02 1:04
Andrew Hoole8-Mar-02 1:04 
GeneralRe: Linked list destruction problem Pin
Tomasz Sowinski8-Mar-02 1:15
Tomasz Sowinski8-Mar-02 1:15 
GeneralCTreeCtrl: editing items question Pin
8-Mar-02 0:55
suss8-Mar-02 0:55 
GeneralRe: CTreeCtrl: editing items question Pin
Tomasz Sowinski8-Mar-02 1:07
Tomasz Sowinski8-Mar-02 1:07 
GeneralRe: CTreeCtrl: editing items question Pin
8-Mar-02 1:52
suss8-Mar-02 1:52 
GeneralLayered Controls Pin
Derek Lakin8-Mar-02 0:33
Derek Lakin8-Mar-02 0:33 
GeneralRe: Layered Controls Pin
Tomasz Sowinski8-Mar-02 0:43
Tomasz Sowinski8-Mar-02 0:43 
GeneralRe: Layered Controls Pin
Derek Lakin8-Mar-02 2:40
Derek Lakin8-Mar-02 2:40 
GeneralRe: Layered Controls Pin
Tomasz Sowinski8-Mar-02 2:44
Tomasz Sowinski8-Mar-02 2:44 
GeneralRe: Layered Controls Pin
Derek Lakin8-Mar-02 2:45
Derek Lakin8-Mar-02 2:45 

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.