Click here to Skip to main content
16,011,538 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Will the following code cause memory leakage? Pin
palbano2-Aug-04 7:43
palbano2-Aug-04 7:43 
GeneralRe: Will the following code cause memory leakage? Pin
ting6682-Aug-04 6:23
ting6682-Aug-04 6:23 
GeneralNot always... Pin
Navin2-Aug-04 6:50
Navin2-Aug-04 6:50 
AnswerRe: Will the following code cause memory leakage? Pin
Navin2-Aug-04 6:53
Navin2-Aug-04 6:53 
QuestionDowncasting? Pin
0v3rloader2-Aug-04 5:35
0v3rloader2-Aug-04 5:35 
AnswerRe: Downcasting? Pin
palbano2-Aug-04 5:58
palbano2-Aug-04 5:58 
GeneralBetter Description of the Problem: Pin
0v3rloader2-Aug-04 6:13
0v3rloader2-Aug-04 6:13 
GeneralRe: Better Description of the Problem: Pin
alex.barylski2-Aug-04 7:11
alex.barylski2-Aug-04 7:11 
If I understand your problem correctly, you won't need to downcast.

All you need to do in order for MFC to automatically subclass your edit control for you is:

1) Right click on edit control
2) Select class wizard
3) Click "Member variables" tab
4) Find control ID for edit control you wish to subclass
5) Double click on it
6) Under category pick control
7) fill in details as required and if your edit control isn't available and only a generic CEdit is displayed you can:

I believe remove your *.clw file and regenerate it when VC as you to selecting all your project files (including CEdit derived (h and cpp files).

OR

Go with a generic CEdit and later just modify it changing it to CPhoneEdit (or whatever)

Cheers Smile | :)

How do I print my voice mail?
GeneralRe: Better Description of the Problem: Pin
palbano2-Aug-04 7:46
palbano2-Aug-04 7:46 
GeneralRe: Better Description of the Problem: Pin
palbano2-Aug-04 8:02
palbano2-Aug-04 8:02 
GeneralCAN'T use ClassWizard!! Code is located in a Static Library. Pin
0v3rloader2-Aug-04 8:33
0v3rloader2-Aug-04 8:33 
GeneralRe: CAN'T use ClassWizard!! Code is located in a Static Library. Pin
alex.barylski2-Aug-04 18:47
alex.barylski2-Aug-04 18:47 
GeneralRe: CAN'T use ClassWizard!! Code is located in a Static Library. Pin
0v3rloader3-Aug-04 2:03
0v3rloader3-Aug-04 2:03 
GeneralCView VSCROLL intro Pin
birdman632-Aug-04 5:27
birdman632-Aug-04 5:27 
GeneralRe: CView VSCROLL intro Pin
alex.barylski2-Aug-04 7:13
alex.barylski2-Aug-04 7:13 
Generaltpkt paquets Pin
argali2-Aug-04 4:45
argali2-Aug-04 4:45 
GeneralWin socket & Dialog boxes Pin
pork chop2-Aug-04 4:43
pork chop2-Aug-04 4:43 
GeneralRe: Win socket & Dialog boxes Pin
palbano2-Aug-04 6:04
palbano2-Aug-04 6:04 
GeneralWindows Startup Pin
Ayman Mahmoud2-Aug-04 4:39
Ayman Mahmoud2-Aug-04 4:39 
GeneralRe: Windows Startup Pin
Jaime Stuardo2-Aug-04 5:02
Jaime Stuardo2-Aug-04 5:02 
GeneralRe: Windows Startup Pin
David Crow2-Aug-04 8:42
David Crow2-Aug-04 8:42 
GeneralDundas Grid question. Pin
Maximilien2-Aug-04 4:32
Maximilien2-Aug-04 4:32 
GeneralRe: Dundas Grid question. Pin
Peter Zajac3-Aug-04 10:04
Peter Zajac3-Aug-04 10:04 
GeneralModal listbox Pin
navratil2-Aug-04 4:14
navratil2-Aug-04 4:14 
GeneralRe: Modal listbox Pin
alex.barylski2-Aug-04 7:18
alex.barylski2-Aug-04 7:18 

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.