Click here to Skip to main content
15,905,144 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: WM_USER+1 vs RegisterWindowsMessage Pin
alex.barylski1-Mar-02 12:21
alex.barylski1-Mar-02 12:21 
GeneralRe: WM_USER+1 vs RegisterWindowsMessage Pin
Tim Smith1-Mar-02 12:51
Tim Smith1-Mar-02 12:51 
GeneralRe: WM_USER+1 vs RegisterWindowsMessage Pin
Michael Dunn1-Mar-02 12:21
sitebuilderMichael Dunn1-Mar-02 12:21 
GeneralRe: WM_USER+1 vs RegisterWindowsMessage Pin
alex.barylski1-Mar-02 14:17
alex.barylski1-Mar-02 14:17 
QuestionBrief & Epsilon emulation in VisStudio.Net? Pin
1-Mar-02 11:10
suss1-Mar-02 11:10 
GeneralPreTranslateMessage Pin
alex.barylski1-Mar-02 9:34
alex.barylski1-Mar-02 9:34 
GeneralRe: PreTranslateMessage Pin
Paul M Watt1-Mar-02 10:12
mentorPaul M Watt1-Mar-02 10:12 
GeneralRe: PreTranslateMessage Pin
alex.barylski1-Mar-02 10:36
alex.barylski1-Mar-02 10:36 
Thanx again Kilo.

I've only re-designed the friggen thing about 6 times now...each time it gets better and better naturally.

I always get so far, only to realize it's not possible...Cry | :((

But I think of a better and possibly easier way of doing things. I'm really trying to keep the control packaged nicely, not so much in fear of anyone using my class, but just for the experience. It's easier for me to use also.

It's this one hurdle that is stopping me in my tracks time and time again, causing me to re-think and re-design.

The parent class I want to do all the drawing, but it already draws the control, so any overriden OnDraw will stomp on the control UI. I thought i'd fix this problem by creating a child window which would also provide clipping, whenever the child gets WM_PAINT it would re-direct it to the parent...and i'd use OnErase for the control appearance UI. The approach which I (think) finally decided on, which is IMO Smile | :) is the best approach, is to just use another virtual function like CParent::OnDrawView() which will respond to the custom message WM_DRAWVIEW sent inside the child's ON_PAINT with the childs CDC* as well

This way drawing can still be done with a virtual function of the parent class. Only problem i'm having now Poke tongue | ;-P

Is how to map a custom message...?

And should I use WM_USER+1 or RegisterWindowsMessage()

Thanx again!

"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
GeneralRe: PreTranslateMessage Pin
alex.barylski1-Mar-02 10:45
alex.barylski1-Mar-02 10:45 
GeneralWinsock API Pin
jangel1-Mar-02 8:19
jangel1-Mar-02 8:19 
GeneralRe: Winsock API Pin
Nish Nishant1-Mar-02 13:00
sitebuilderNish Nishant1-Mar-02 13:00 
QuestionAre the STL classes thread-safe? Pin
Le centriste1-Mar-02 8:05
Le centriste1-Mar-02 8:05 
AnswerRe: Are the STL classes thread-safe? Pin
Nemanja Trifunovic1-Mar-02 8:04
Nemanja Trifunovic1-Mar-02 8:04 
GeneralCListCtrl question Pin
jafrazee1-Mar-02 7:56
jafrazee1-Mar-02 7:56 
GeneralRe: CListCtrl question Pin
Shog91-Mar-02 7:59
sitebuilderShog91-Mar-02 7:59 
GeneralRe: Icon Searcher v1.2 and over 30,000 icons download Pin
Jon Hulatt1-Mar-02 7:07
Jon Hulatt1-Mar-02 7:07 
GeneralRe: Icon Searcher v1.2 and over 30,000 icons download Pin
Nish Nishant1-Mar-02 7:28
sitebuilderNish Nishant1-Mar-02 7:28 
GeneralRe: Icon Searcher v1.2 and over 30,000 icons download Pin
alex.barylski1-Mar-02 8:30
alex.barylski1-Mar-02 8:30 
GeneralMSFlexGrid control in Console Application Pin
Don Miguel1-Mar-02 6:29
Don Miguel1-Mar-02 6:29 
GeneralRe: MSFlexGrid control in Console Application Pin
Nish Nishant1-Mar-02 6:29
sitebuilderNish Nishant1-Mar-02 6:29 
GeneralRe: MSFlexGrid control in Console Application Pin
Bill Wilson1-Mar-02 8:46
Bill Wilson1-Mar-02 8:46 
GeneralRe: MSFlexGrid control in Console Application Pin
Carlos Antollini1-Mar-02 9:12
Carlos Antollini1-Mar-02 9:12 
GeneralRe: MSFlexGrid control in Console Application Pin
Don Miguel1-Mar-02 20:46
Don Miguel1-Mar-02 20:46 
GeneralRe: MSFlexGrid control in Console Application Pin
Nish Nishant1-Mar-02 20:56
sitebuilderNish Nishant1-Mar-02 20:56 
GeneralRe: MSFlexGrid control in Console Application Pin
Don Miguel1-Mar-02 20:55
Don Miguel1-Mar-02 20:55 

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.