Click here to Skip to main content
15,906,558 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: function pointer Pin
Steve Severance6-Mar-02 15:52
Steve Severance6-Mar-02 15:52 
GeneralRe: function pointer Pin
Nish Nishant6-Mar-02 16:39
sitebuilderNish Nishant6-Mar-02 16:39 
GeneralRe: function pointer Pin
Steve Severance7-Mar-02 10:28
Steve Severance7-Mar-02 10:28 
GeneralMulti-threading Pin
amarg6-Mar-02 7:12
amarg6-Mar-02 7:12 
GeneralRe: Multi-threading Pin
Nish Nishant6-Mar-02 7:54
sitebuilderNish Nishant6-Mar-02 7:54 
GeneralRe: Multi-threading Pin
Joaquín M López Muñoz6-Mar-02 9:23
Joaquín M López Muñoz6-Mar-02 9:23 
GeneralRe: Multi-threading Pin
Morozov Alexey6-Mar-02 13:13
Morozov Alexey6-Mar-02 13:13 
GeneralA solution Pin
amarg7-Mar-02 7:04
amarg7-Mar-02 7:04 
I finally solved the problem by using the following approach:

In the cpp file of the child window B I declared a global object of type "window A". Then in the InitDialog member function of window B I called the GetParent function and I copied its return to the global object of type "window A". In the next step I used this global object from my thread function and it worked !! I also noticed that the GetParent function it works if it is called from the thread function but only the MFC based procedures of the parent window are accessible - in this way I managed to disable a button of the parent window A from the thread function of the child window B. However if the parent window A has additional member functions (non MFC based)they are not accessible in this way - but they are, if we use the method of the global object described above.

Thanks all of you for your response
Athanasios Margaris
University of Macedonia
Dept. of Applied Informatics
Thessaloniki Greece
Web Site : http://www.neural.uom.gr (most in Greek)
Smile | :)
GeneralRe: Multi-threading Pin
Stephen C. Steel8-Mar-02 8:39
Stephen C. Steel8-Mar-02 8:39 
GeneralChange Controls Size?! Pin
6-Mar-02 6:52
suss6-Mar-02 6:52 
GeneralRe: Change Controls Size?! Pin
Andres Manggini6-Mar-02 9:38
Andres Manggini6-Mar-02 9:38 
GeneralRe: Change Controls Size?! Pin
Carlos Antollini6-Mar-02 9:55
Carlos Antollini6-Mar-02 9:55 
GeneralRe: Change Controls Size?! Pin
moliate6-Mar-02 10:29
moliate6-Mar-02 10:29 
GeneralRe: Change Controls Size?! Pin
7-Mar-02 2:34
suss7-Mar-02 2:34 
GeneralExternal Control of VC++ Interface Pin
Blade[DMS]6-Mar-02 6:10
Blade[DMS]6-Mar-02 6:10 
Generalagain anchor property Pin
Mazdak6-Mar-02 6:05
Mazdak6-Mar-02 6:05 
QuestionHow do I pass arguments to a view? Pin
6-Mar-02 5:03
suss6-Mar-02 5:03 
AnswerRe: How do I pass arguments to a view? Pin
Tomasz Sowinski6-Mar-02 5:53
Tomasz Sowinski6-Mar-02 5:53 
GeneralRe: How do I pass arguments to a view? Pin
6-Mar-02 6:26
suss6-Mar-02 6:26 
AnswerRe: How do I pass arguments to a view? Pin
Joaquín M López Muñoz6-Mar-02 5:57
Joaquín M López Muñoz6-Mar-02 5:57 
GeneralRe: How do I pass arguments to a view? Pin
6-Mar-02 7:13
suss6-Mar-02 7:13 
GeneralRe: How do I pass arguments to a view? Pin
Joaquín M López Muñoz6-Mar-02 9:00
Joaquín M López Muñoz6-Mar-02 9:00 
AnswerRe: How do I pass arguments to a view? Pin
Jonathan Craig6-Mar-02 8:49
Jonathan Craig6-Mar-02 8:49 
GeneralDoc/View borders Pin
Derek Lakin6-Mar-02 4:16
Derek Lakin6-Mar-02 4:16 
GeneralRe: Doc/View borders Pin
Joaquín M López Muñoz6-Mar-02 5:46
Joaquín M López Muñoz6-Mar-02 5:46 

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.