Re: Member Variables Naming Convention



Dave,

Well I was going to look that up again but I see you gave me a trick
question. I just stated in the post you were replying to that I
considered references to controls a bit different than straight
variables. Perhaps you didn't read my entire post, eh? We were talking
about member variables.

I read your entire post. No tricks here :)

We are talking about fields (member variables, as you say), which
txtFirstName and lblFirstName certainly are.

How would you name these two Controls?

Well, as I indicated, I consider that a different issue. I haven't decided
on this issue for sure, but I have a tendancy to stick with what I did in
VB, which is to include those prefixes.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com


.



Relevant Pages

  • Re: Input Box
    ... You should store the arguments in member variables and then call DoModal. ... The edit control allows the user to enter the ... and it has returned that I have an "Invalid Window Handle," which supports ... have attached a member variables to the controls, ...
    (microsoft.public.vc.mfc)
  • Re: Input Box
    ... "Jonathan Wood" wrote: ... You should store the arguments in member variables and then call DoModal. ... and it has returned that I have an "Invalid Window Handle," which supports ... have attached a member variables to the controls, ...
    (microsoft.public.vc.mfc)
  • Re: Subclassing a Dialog Control ?
    ... > ClassWizard to create a member variable of the control type of my derived ... > consistency because for my other controls I don't have dialog member ... windows messages and altering the behavior of that window. ... NEED to have member variables to get to the controls in your dialog, ...
    (microsoft.public.vc.mfc)
  • Re: CButton casts
    ... overkill for 40-50 controls every time 1-2 of them change. ... So I manually updated member variables where they changed and the control. ... Of course, if use UpdateData(), then it reduces to 1 thing, ... If I update one of the DDX Controls, ...
    (microsoft.public.vc.mfc)
  • Re: CButton casts
    ... >your dialog controls have no interaction, and in that scenario, it is a 100% ... UpdateData has got nothing to do with enabling/disabling controls. ... >member variables to reduce the lines of code. ... I'm not sure what you mean by a "DDX Control". ...
    (microsoft.public.vc.mfc)

Loading