Click here to Skip to main content
15,902,635 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionmultiline edit box with 10000 lines??? Pin
rafal7715-Feb-05 1:34
sussrafal7715-Feb-05 1:34 
AnswerRe: multiline edit box with 10000 lines??? Pin
rocky_pulley15-Feb-05 1:47
rocky_pulley15-Feb-05 1:47 
AnswerRe: multiline edit box with 10000 lines??? Pin
David Crow15-Feb-05 4:15
David Crow15-Feb-05 4:15 
AnswerRe: multiline edit box with 10000 lines??? Pin
Ravi Bhavnani15-Feb-05 9:08
professionalRavi Bhavnani15-Feb-05 9:08 
GeneralCalling a C# dll from VC 7 Pin
CLermen15-Feb-05 0:59
CLermen15-Feb-05 0:59 
GeneralRe: Calling a C# dll from VC 7 Pin
Mike Dimmick15-Feb-05 1:15
Mike Dimmick15-Feb-05 1:15 
GeneralRe: Calling a C# dll from VC 7 Pin
CLermen15-Feb-05 2:01
CLermen15-Feb-05 2:01 
GeneralCreating child windows in PreSubclassWindow Pin
Garth Watkins15-Feb-05 0:43
Garth Watkins15-Feb-05 0:43 
Hi
I have a control that can either be created dynamically (using CWnd::Create()) or is created directly by windows when placed on a dialog using the dialog editor.
In both cases PreSubclassWindow is called by the framework, which I then use to initialize the control. I don't use OnCreate to do the intialization as OnCreate is not called when the control sits inside a dialog. My Initialzation function which is called from PreSubclassWindow creates other child controls used by my control. Everything works out well when the control is created as part of a dialog control, but everything seems to fall apart when creating my control dynamically using CMyControl::Create(...);

Having stepped through the creation code, windows always calls CWnd::Attach twice when creating dynamically, with the second call to Attach causing the debug assertion as the controls window is already attached the first time around.

Anyone got any ideas about whats going here whith a pssible solution?

Thanks
Garth

GeneralRe: Creating child windows in PreSubclassWindow Pin
Garth Watkins15-Feb-05 9:22
Garth Watkins15-Feb-05 9:22 
GeneralRe: Creating child windows in PreSubclassWindow Pin
Garth Watkins15-Feb-05 9:26
Garth Watkins15-Feb-05 9:26 
GeneralRe: Creating child windows in PreSubclassWindow Pin
ThatsAlok16-Feb-05 19:07
ThatsAlok16-Feb-05 19:07 
GeneralMove a child window to an absolute position Pin
doctorpi14-Feb-05 22:32
doctorpi14-Feb-05 22:32 
GeneralRe: Move a child window to an absolute position Pin
Rajesh_Parameswaran15-Feb-05 0:14
Rajesh_Parameswaran15-Feb-05 0:14 
GeneralRe: Move a child window to an absolute position Pin
doctorpi15-Feb-05 0:20
doctorpi15-Feb-05 0:20 
GeneralRe: Move a child window to an absolute position Pin
User 665815-Feb-05 0:44
User 665815-Feb-05 0:44 
GeneralRe: Move a child window to an absolute position Pin
doctorpi15-Feb-05 0:50
doctorpi15-Feb-05 0:50 
GeneralRe: Move a child window to an absolute position Pin
Antony M Kancidrowski15-Feb-05 2:36
Antony M Kancidrowski15-Feb-05 2:36 
GeneralRe: Move a child window to an absolute position Pin
doctorpi15-Feb-05 2:39
doctorpi15-Feb-05 2:39 
GeneralRe: Move a child window to an absolute position Pin
doctorpi15-Feb-05 2:52
doctorpi15-Feb-05 2:52 
GeneralRe: Move a child window to an absolute position Pin
Antony M Kancidrowski15-Feb-05 13:46
Antony M Kancidrowski15-Feb-05 13:46 
GeneralRe: Move a child window to an absolute position Pin
doctorpi15-Feb-05 20:50
doctorpi15-Feb-05 20:50 
GeneralRe: Move a child window to an absolute position Pin
doctorpi15-Feb-05 21:04
doctorpi15-Feb-05 21:04 
Generalbeginner to the Visual C++ Pin
Munisamy14-Feb-05 21:59
Munisamy14-Feb-05 21:59 
GeneralRe: beginner to the Visual C++ Pin
rocky_pulley15-Feb-05 1:19
rocky_pulley15-Feb-05 1:19 
Generalhelp needed in shellexecute Pin
URagavSouth14-Feb-05 21:43
URagavSouth14-Feb-05 21:43 

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.