In a simple MDI application, I tired to override CChildFrame::PreTranslateMessage to pre-process some events or just drop them if meet some condition. However, I found that all events were received...
@olivthill2
Caching a table of widths of characters didn't include inter-spacing and others like what @OReubens said. But it would be a simple way and probably fit for many cases.
You are correct. I know that's expected behavior.
However, what I'd like to do is to handle mouse & kb messages before they get dispatched to target window and optionally determine if they should...
So PreTranslateMessage for app class gets higher priority than which for each CWnd, right?
Suppose that I write a PreTranslateMessage for app class and a PreTranslateMessage for one CWnd, they will...
My point is that after my main thread sent a http request and then it went into suspended state, since there's no any input event, next, when http thread notified main thread via an...
That's right, in any option, I should try further to manage all views, layout, msg handling, maybe still other things, override default framework functionality.
Now I selected MDI architecture, since I do really need multiple frames, and further multiple views co-exsited under same frame (views coexist in some pattern). There's...
Not yet. There would be an external data source which I could read, parse and generate views accordingly, but I don't need to save them. I'm sure that won't be single-doc/multi-views relationship.
...
Thanks a lot.
For item 3, sure, I won't make my wheels all from scratch. If I need a custom editbox, I could have CEdit-derived control, but if there's no appropriate common control, I have to build...
I'm designing my app by using of MFC, I'm not quite familiar with MFC framework, my background is some Win32 and WinForms experience. Right here I got some designing issue, and I'm trying to get help...