Click here to Skip to main content
15,914,163 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: can I dynamically convert a base class object into a derived class object? Pin
Prakash Nadar18-Jan-06 23:19
Prakash Nadar18-Jan-06 23:19 
QuestionChild Static Control not displayed when created when parent hidden !? Why!! Pin
Axonn Echysttas18-Jan-06 18:55
Axonn Echysttas18-Jan-06 18:55 
AnswerRe: Child Static Control not displayed when created when parent hidden !? Why!! Pin
Stephen Hewitt18-Jan-06 19:11
Stephen Hewitt18-Jan-06 19:11 
GeneralRe: Child Static Control not displayed when created when parent hidden !? Why!! Pin
Axonn Echysttas18-Jan-06 19:56
Axonn Echysttas18-Jan-06 19:56 
GeneralRe: Child Static Control not displayed when created when parent hidden !? Why!! Pin
Stephen Hewitt18-Jan-06 20:00
Stephen Hewitt18-Jan-06 20:00 
GeneralRe: Child Static Control not displayed when created when parent hidden !? Why!! Pin
Axonn Echysttas18-Jan-06 20:28
Axonn Echysttas18-Jan-06 20:28 
GeneralRe: Child Static Control not displayed when created when parent hidden !? Why!! Pin
Stephen Hewitt18-Jan-06 20:57
Stephen Hewitt18-Jan-06 20:57 
GeneralRe: Child Static Control not displayed when created when parent hidden !? Why!! Pin
Axonn Echysttas18-Jan-06 21:22
Axonn Echysttas18-Jan-06 21:22 
Well, I'm not that much of a begginer. Sorry, I forgot to mention that I do set WIDTH and HEIGHT later. So those are valid members. However, you did help me understand the real problem. The X and Y that I set later were corrupt due to some checks I made later and because the parent wasn't visible, X and Y were something like -50000. Now I corrected them and it works. So thank you for indirectly making me solve the problem!!

About the HINSTANCE: I don't think that this is the problem because it works in some cases, as I said, when I call the CreateControl function later. However, I did take your remark in notice and will try from now on to pass HINSTANCE. I don't fully understand the difference between passing a HINSTANCE and a HWND, and at the time, I couldn't get a HINSTANCE so easily. How do you get one for a HWND anyway?

-= E C H Y S T T A S =-
The Greater Mind Balance
GeneralRe: Child Static Control not displayed when created when parent hidden !? Why!! Pin
Stephen Hewitt18-Jan-06 21:44
Stephen Hewitt18-Jan-06 21:44 
GeneralRe: Child Static Control not displayed when created when parent hidden !? Why!! Pin
Axonn Echysttas18-Jan-06 22:00
Axonn Echysttas18-Jan-06 22:00 
GeneralRe: Child Static Control not displayed when created when parent hidden !? Why!! Pin
Stephen Hewitt18-Jan-06 22:03
Stephen Hewitt18-Jan-06 22:03 
GeneralRe: Child Static Control not displayed when created when parent hidden !? Why!! Pin
Axonn Echysttas19-Jan-06 0:44
Axonn Echysttas19-Jan-06 0:44 
GeneralRe: Child Static Control not displayed when created when parent hidden !? Why!! Pin
Axonn Echysttas19-Jan-06 1:07
Axonn Echysttas19-Jan-06 1:07 
GeneralRe: Child Static Control not displayed when created when parent hidden !? Why!! Pin
Stephen Hewitt19-Jan-06 1:55
Stephen Hewitt19-Jan-06 1:55 
GeneralRe: Child Static Control not displayed when created when parent hidden !? Why!! Pin
Axonn Echysttas19-Jan-06 2:23
Axonn Echysttas19-Jan-06 2:23 
GeneralRe: Child Static Control not displayed when created when parent hidden !? Why!! Pin
Stephen Hewitt19-Jan-06 3:27
Stephen Hewitt19-Jan-06 3:27 
GeneralRe: Child Static Control not displayed when created when parent hidden !? Why!! Pin
Axonn Echysttas19-Jan-06 4:15
Axonn Echysttas19-Jan-06 4:15 
QuestionWPARAM and LPARAM ? Pin
Owner drawn18-Jan-06 17:50
Owner drawn18-Jan-06 17:50 
AnswerRe: WPARAM and LPARAM ? Pin
Prakash Nadar18-Jan-06 17:57
Prakash Nadar18-Jan-06 17:57 
AnswerRe: WPARAM and LPARAM ? Pin
Christian Graus18-Jan-06 17:58
protectorChristian Graus18-Jan-06 17:58 
QuestionRe: WPARAM and LPARAM ? (What about HWND...Where should it go?) Pin
Owner drawn18-Jan-06 18:02
Owner drawn18-Jan-06 18:02 
AnswerRe: WPARAM and LPARAM ? (What about HWND...Where should it go?) Pin
Prakash Nadar18-Jan-06 18:15
Prakash Nadar18-Jan-06 18:15 
AnswerRe: WPARAM and LPARAM ? Pin
Blake Miller19-Jan-06 8:02
Blake Miller19-Jan-06 8:02 
GeneralRe: WPARAM and LPARAM ? Pin
Owner drawn19-Jan-06 16:54
Owner drawn19-Jan-06 16:54 
GeneralRe: WPARAM and LPARAM ? Pin
Blake Miller20-Jan-06 4:06
Blake Miller20-Jan-06 4:06 

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.