Click here to Skip to main content
15,881,089 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: mfc Pin
_Flaviu9-Nov-14 20:18
_Flaviu9-Nov-14 20:18 
AnswerRe: mfc Pin
Richard MacCutchan9-Nov-14 21:46
mveRichard MacCutchan9-Nov-14 21:46 
AnswerRe: mfc Pin
Chris Losinger10-Nov-14 3:05
professionalChris Losinger10-Nov-14 3:05 
QuestionClasses for Win32 UI and how to hide details Pin
Fernando A. Gomez F.9-Nov-14 11:19
Fernando A. Gomez F.9-Nov-14 11:19 
AnswerRe: Classes for Win32 UI and how to hide details Pin
Orjan Westin10-Nov-14 2:55
professionalOrjan Westin10-Nov-14 2:55 
GeneralRe: Classes for Win32 UI and how to hide details Pin
Fernando A. Gomez F.10-Nov-14 6:57
Fernando A. Gomez F.10-Nov-14 6:57 
GeneralRe: Classes for Win32 UI and how to hide details Pin
Orjan Westin10-Nov-14 7:29
professionalOrjan Westin10-Nov-14 7:29 
AnswerRe: Classes for Win32 UI and how to hide details Pin
Aescleal11-Nov-14 2:05
Aescleal11-Nov-14 2:05 
I've used a couple of way of getting around this:

- use the void pointer hack

- wrap every WIN32 operation in another class called window_handle then implement window classes as needed using that. I also replaced the concrete base class with an interface class as virtually all the code that would have been saved by implementation inheritance ended up in the window_handle. This is similar to your shared PIMPL but the PIMPL is actually a full blown object in its own right and does all the WIN32 stuff and doesn't just hide an HWND.

Another way I want to experiment with further decouples the windows guff from the logic of what the window actually does. The idea is to have a window class that has a message handler interface pointer but I haven't tried that yet. You'll be getting a similar effect using boost::signal2 to route messages.
GeneralRe: Classes for Win32 UI and how to hide details Pin
Fernando A. Gomez F.11-Nov-14 8:18
Fernando A. Gomez F.11-Nov-14 8:18 
QuestionCatching OnMouseMove on CGridCtrl Pin
_Flaviu7-Nov-14 0:31
_Flaviu7-Nov-14 0:31 
AnswerRe: Catching OnMouseMove on CGridCtrl Pin
_Flaviu7-Nov-14 0:44
_Flaviu7-Nov-14 0:44 
AnswerRe: Catching OnMouseMove on CGridCtrl Pin
Jochen Arndt7-Nov-14 1:56
professionalJochen Arndt7-Nov-14 1:56 
GeneralRe: Catching OnMouseMove on CGridCtrl Pin
_Flaviu7-Nov-14 2:30
_Flaviu7-Nov-14 2:30 
GeneralRe: Catching OnMouseMove on CGridCtrl Pin
Jochen Arndt7-Nov-14 2:40
professionalJochen Arndt7-Nov-14 2:40 
GeneralRe: Catching OnMouseMove on CGridCtrl Pin
_Flaviu9-Nov-14 20:44
_Flaviu9-Nov-14 20:44 
QuestionGetting Quotes on Call Options and Put Options Pin
BobInNJ6-Nov-14 8:35
BobInNJ6-Nov-14 8:35 
AnswerRe: Getting Quotes on Call Options and Put Options Pin
ZurdoDev6-Nov-14 10:18
professionalZurdoDev6-Nov-14 10:18 
GeneralRe: Getting Quotes on Call Options and Put Options Pin
BobInNJ6-Nov-14 11:36
BobInNJ6-Nov-14 11:36 
AnswerRe: Getting Quotes on Call Options and Put Options Pin
Richard Andrew x646-Nov-14 11:43
professionalRichard Andrew x646-Nov-14 11:43 
AnswerRe: Getting Quotes on Call Options and Put Options Pin
jschell6-Nov-14 13:29
jschell6-Nov-14 13:29 
AnswerRe: Getting Quotes on Call Options and Put Options Pin
Richard MacCutchan6-Nov-14 22:13
mveRichard MacCutchan6-Nov-14 22:13 
Questionhow to free memory space for 2 dimension ? Pin
mybm15-Nov-14 18:18
mybm15-Nov-14 18:18 
SuggestionRe: how to free memory space for 2 dimension ? Pin
Jochen Arndt5-Nov-14 21:13
professionalJochen Arndt5-Nov-14 21:13 
Question32 bits processor and single bit bitmap Pin
Vaclav_5-Nov-14 6:10
Vaclav_5-Nov-14 6:10 
AnswerRe: 32 bits processor and single bit bitmap Pin
Albert Holguin5-Nov-14 8:38
professionalAlbert Holguin5-Nov-14 8:38 

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.