Click here to Skip to main content
15,923,120 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: 2 vc7 problems..and 1 question Pin
toxcct7-Aug-05 8:43
toxcct7-Aug-05 8:43 
GeneralRe: 2 vc7 problems..and 1 question Pin
YaronNir7-Aug-05 20:08
YaronNir7-Aug-05 20:08 
Generaldbf odbc Pin
_tasleem7-Aug-05 3:23
_tasleem7-Aug-05 3:23 
GeneralRe: dbf odbc Pin
David Crow8-Aug-05 8:37
David Crow8-Aug-05 8:37 
GeneralRe: dbf odbc Pin
_tasleem10-Aug-05 12:28
_tasleem10-Aug-05 12:28 
GeneralWS_TABSTOP and EDIT controls Pin
Luther Baker7-Aug-05 0:04
Luther Baker7-Aug-05 0:04 
GeneralRe: WS_TABSTOP and EDIT controls Pin
Anonymous7-Aug-05 2:55
Anonymous7-Aug-05 2:55 
GeneralRe: WS_TABSTOP and EDIT controls Pin
Luther Baker7-Aug-05 7:36
Luther Baker7-Aug-05 7:36 
GeneralRe: WS_TABSTOP and EDIT controls Pin
benft12-Oct-05 14:06
benft12-Oct-05 14:06 
GeneralError during compiler upgrade Pin
AnkurGupta_19816-Aug-05 22:16
AnkurGupta_19816-Aug-05 22:16 
GeneralRe: Error during compiler upgrade Pin
toxcct6-Aug-05 22:59
toxcct6-Aug-05 22:59 
Generalcalling int 21h from a __asm block of code Pin
CorvetteZ06066-Aug-05 21:54
CorvetteZ06066-Aug-05 21:54 
GeneralRe: calling int 21h from a __asm block of code Pin
John R. Shaw6-Aug-05 23:28
John R. Shaw6-Aug-05 23:28 
GeneralRe: calling int 21h from a __asm block of code Pin
CorvetteZ06067-Aug-05 3:37
CorvetteZ06067-Aug-05 3:37 
GeneralRe: calling int 21h from a __asm block of code Pin
John R. Shaw8-Aug-05 18:39
John R. Shaw8-Aug-05 18:39 
GeneralRe: calling int 21h from a __asm block of code Pin
Alexander M.,7-Aug-05 4:38
Alexander M.,7-Aug-05 4:38 
GeneralRe: calling int 21h from a __asm block of code Pin
Gary R. Wheeler7-Aug-05 4:52
Gary R. Wheeler7-Aug-05 4:52 
GeneralRe: calling int 21h from a __asm block of code Pin
CorvetteZ06067-Aug-05 6:08
CorvetteZ06067-Aug-05 6:08 
GeneralRe: calling int 21h from a __asm block of code Pin
David Crow8-Aug-05 8:42
David Crow8-Aug-05 8:42 
GeneralRe: calling int 21h from a __asm block of code Pin
Gary R. Wheeler8-Aug-05 12:56
Gary R. Wheeler8-Aug-05 12:56 
GeneralFailing Debug Assertion in DoModal() Pin
gremlinimp6-Aug-05 19:20
gremlinimp6-Aug-05 19:20 
GeneralRe: Failing Debug Assertion in DoModal() Pin
Jose Lamas Rios6-Aug-05 20:23
Jose Lamas Rios6-Aug-05 20:23 
GeneralRe: Failing Debug Assertion in DoModal() Pin
gremlinimp6-Aug-05 20:47
gremlinimp6-Aug-05 20:47 
For those interested, I will now answer, at least in part, my own question.:

Solution:
Override CMyDialog::OnInitDialog() and initialize the CTabCtrl there.

As far as I've traced it, CMyDialog::DoModal() calls CDialog::DoModal() (i.e. the base class fn.). This I knew. What I didn't know is that CDialog::DoModal() calls my OnInitDialog() (or some funtion up(down,whatever) on the call stack before DoModal returns does). I just assumed that CMyDialog's constructor was calling OnInitDialog()Blush | :O . So, CDialog::DoModal() apparently initializes some stuff behind the scenes before it calls OnInitDialog() which allows me to init my controls safely.

It is late and I am too tired to dig further.

If anyone out there understands the sequence of behind the scenes initializations or whatnot that happens between the call to CDialog::DoModal() and the call to OnInitDialog() please explain.
GeneralRe: Failing Debug Assertion in DoModal() Pin
gremlinimp6-Aug-05 20:49
gremlinimp6-Aug-05 20:49 
GeneralLarge Array Implementing Pin
Majid Shahabfar6-Aug-05 19:07
Majid Shahabfar6-Aug-05 19:07 

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.