Click here to Skip to main content
15,921,203 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How can i get & set folder acess permission? Pin
Anthony_Yio24-May-04 23:41
Anthony_Yio24-May-04 23:41 
GeneralNetwork patches Pin
24-May-04 21:18
suss24-May-04 21:18 
GeneralNetwork patches Pin
ykutanoor24-May-04 21:18
ykutanoor24-May-04 21:18 
GeneralRe: Network patches Pin
David Crow25-May-04 2:11
David Crow25-May-04 2:11 
QuestionCEDit creation through Dialog-Resource, OnNcPaint not called, why ? Pin
ohadp24-May-04 20:57
ohadp24-May-04 20:57 
AnswerRe: CEDit creation through Dialog-Resource, OnNcPaint not called, why ? Pin
Johan Rosengren24-May-04 23:19
Johan Rosengren24-May-04 23:19 
GeneralRe: CEDit creation through Dialog-Resource, OnNcPaint not called, why ? Pin
ohadp25-May-04 0:02
ohadp25-May-04 0:02 
GeneralRe: CEDit creation through Dialog-Resource, OnNcPaint not called, why ? Pin
Johan Rosengren25-May-04 0:35
Johan Rosengren25-May-04 0:35 
ohadp wrote:
I've checked all the resource-ids/etc, all looks ok.

Then, you might want to tear down the project, perhaps by removing all the controls that works. Set a breakpoint in some function you know will be called in the class of the offending controls (such as PreSubclassWindow Smile | :) ) and verify that the controls are really subclassed.

ohadp wrote:
PreSubclassWindow is interesting but problematic. The reason is that if I do my things inside PreSubclassWindow my control isn't subclassed yet, and so it's message-handlers aren't called when messages arrive

To be sure I've not gone completely crazy (which I still won't outrule, however), I tested with a subclassed CEdit, instantiated from a resource template, mapped to a control variable of my class.

As expected, PreSubclassWindow is called after the control is created, and so you do have access to the control size and position. Of course, the handlers of the subclass aren't called before or during this call, thus the name PreSubclassWindow Smile | :)

Now, as PreSubclassWindow is a member of your class, you have full access to all other class members of the instance at this time of the execution, so I'm slightly baffled as to why you would need to know that the subclassing is finished - for all practical purposes, it is at this stage.
GeneralRe: CEDit creation through Dialog-Resource, OnNcPaint not called, why ? Pin
ohadp26-May-04 20:34
ohadp26-May-04 20:34 
GeneralRe: CEDit creation through Dialog-Resource, OnNcPaint not called, why ? Pin
Johan Rosengren26-May-04 20:39
Johan Rosengren26-May-04 20:39 
QuestionHow to change the Luminosity/Intensity of a Pixel?? Pin
anuragvelekkattu24-May-04 18:43
anuragvelekkattu24-May-04 18:43 
AnswerRe: How to change the Luminosity/Intensity of a Pixel?? Pin
*Dreamz24-May-04 18:56
*Dreamz24-May-04 18:56 
AnswerRe: How to change the Luminosity/Intensity of a Pixel?? Pin
Kamyar Souri24-May-04 20:01
Kamyar Souri24-May-04 20:01 
AnswerRe: How to change the Luminosity/Intensity of a Pixel?? Pin
Branislav25-May-04 2:00
Branislav25-May-04 2:00 
GeneralAbout Service Pack Pin
Northbird24-May-04 18:40
Northbird24-May-04 18:40 
GeneralRe: About Service Pack Pin
SimasT24-May-04 23:10
SimasT24-May-04 23:10 
QuestionHow to choose Best Adapter ? Pin
.NetRams24-May-04 18:37
.NetRams24-May-04 18:37 
AnswerRe: How to choose Best Adapter ? Pin
David Crow25-May-04 2:15
David Crow25-May-04 2:15 
Generaldrawing on child windows Pin
ashxly24-May-04 18:31
ashxly24-May-04 18:31 
GeneralRe: drawing on child windows Pin
Johan Rosengren24-May-04 23:27
Johan Rosengren24-May-04 23:27 
GeneralGetTitleBarInfo Pin
TrungHuynh24-May-04 16:51
TrungHuynh24-May-04 16:51 
GeneralRe: GetTitleBarInfo Pin
Michael Dunn24-May-04 17:56
sitebuilderMichael Dunn24-May-04 17:56 
GeneralRe: GetTitleBarInfo Pin
*Dreamz24-May-04 18:46
*Dreamz24-May-04 18:46 
GeneralSTL string case conversion Pin
Indrawati24-May-04 15:52
Indrawati24-May-04 15:52 
GeneralRe: STL string case conversion Pin
Christian Graus24-May-04 17:25
protectorChristian Graus24-May-04 17:25 

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.