Click here to Skip to main content
16,005,178 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to get application file name? Pin
artful4-Apr-04 3:30
artful4-Apr-04 3:30 
AnswerRe: how to get application file name? Pin
Anonymous4-Apr-04 4:27
Anonymous4-Apr-04 4:27 
GeneralRe: how to get application file name? Pin
artful4-Apr-04 5:09
artful4-Apr-04 5:09 
GeneralRe: how to get application file name? Pin
Prakash Nadar4-Apr-04 5:15
Prakash Nadar4-Apr-04 5:15 
GeneralRe: how to get application file name? Pin
John R. Shaw4-Apr-04 9:36
John R. Shaw4-Apr-04 9:36 
AnswerRe: how to get application file name? Pin
GflPower4-Apr-04 14:17
GflPower4-Apr-04 14:17 
AnswerRe: how to get application file name? Pin
avenger_sb255-Apr-04 5:27
avenger_sb255-Apr-04 5:27 
GeneralCustom CListCtrl Pin
Halloko4-Apr-04 0:30
Halloko4-Apr-04 0:30 
Ahoy there,

I've made this custom list control which supports edit controls, check boxes and combo boxes in its items.
However, I have a minor problem. Say I have restricted the user to only input numbers into the edit control of a specific item. Now, I would also like to verify that the inputted data is between a specific range whenever the user has finished typing (that is, when the edit control loses focus and is destroyed). I do not want to put this verify code specifically in my custom list control class as I want it (the class) to be as abstract as possible. Instead, it should be up to the specific application which uses the control to verify this inputted data. The problem is, however, how I can notify the dialog containing the custom list control about the need to verify some data.

I've tried sending e.g. the LVN_ENDLABELEDIT message but it doesn't seem to be intercepted by the dialog. Also, I've been thinking that one could perhaps pass a function pointer to the custom list control class which the class can then just call whenever it needs data verification.

I'm not sure, though, which one is the best and if my ideas even are preferable.

Suggestions are very welcome!
Thanks in advance, Smile | :)
GeneralRe: Custom CListCtrl Pin
avenger_sb255-Apr-04 5:32
avenger_sb255-Apr-04 5:32 
GeneralRe: Custom CListCtrl Pin
Halloko5-Apr-04 5:48
Halloko5-Apr-04 5:48 
GeneralSad tale of 'const' Pin
73Zeppelin4-Apr-04 0:11
73Zeppelin4-Apr-04 0:11 
GeneralRe: Sad tale of 'const' Pin
Neville Franks4-Apr-04 0:37
Neville Franks4-Apr-04 0:37 
GeneralRe: Sad tale of 'const' Pin
73Zeppelin4-Apr-04 0:40
73Zeppelin4-Apr-04 0:40 
GeneralRe: Sad tale of 'const' Pin
Neville Franks4-Apr-04 1:34
Neville Franks4-Apr-04 1:34 
GeneralRe: Sad tale of 'const' Pin
Jörgen Sigvardsson4-Apr-04 9:04
Jörgen Sigvardsson4-Apr-04 9:04 
Generalspecifying a map Pin
MatthewP3-Apr-04 22:43
MatthewP3-Apr-04 22:43 
GeneralRe: specifying a map Pin
Andrew Walker3-Apr-04 23:52
Andrew Walker3-Apr-04 23:52 
Generalmap container Pin
MatthewP3-Apr-04 22:41
MatthewP3-Apr-04 22:41 
GeneralRe: map container Pin
Johnny ²3-Apr-04 23:45
Johnny ²3-Apr-04 23:45 
Generalapp not compatable between XP and 2000 Pin
quzi3-Apr-04 21:50
quzi3-Apr-04 21:50 
GeneralRe: app not compatable between XP and 2000 Pin
Alexander M.,4-Apr-04 1:03
Alexander M.,4-Apr-04 1:03 
GeneralRe: app not compatable between XP and 2000 Pin
quzi4-Apr-04 1:25
quzi4-Apr-04 1:25 
QuestionHow to create an ActiveX in Visual Studio? Pin
anderslundsgard3-Apr-04 21:48
anderslundsgard3-Apr-04 21:48 
GeneralQuestion on serial port and data buffer Pin
knightri3-Apr-04 17:11
knightri3-Apr-04 17:11 
GeneralRe: Question on serial port and data buffer Pin
Simon.W3-Apr-04 17:21
Simon.W3-Apr-04 17:21 

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.