Click here to Skip to main content
15,918,742 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ADO recordset object Pin
Prem Kumar16-Aug-02 2:52
Prem Kumar16-Aug-02 2:52 
QuestionIs a service running ? Pin
Christian Graus15-Aug-02 20:59
protectorChristian Graus15-Aug-02 20:59 
AnswerRe: Is a service running ? Pin
Nish Nishant15-Aug-02 21:35
sitebuilderNish Nishant15-Aug-02 21:35 
QuestionHow to integrate Font control? Pin
Prateeti15-Aug-02 19:38
Prateeti15-Aug-02 19:38 
AnswerRe: How to integrate Font control? Pin
Stefan Pedersen15-Aug-02 23:08
Stefan Pedersen15-Aug-02 23:08 
Generalsimulate mouse double click on other application Pin
mmlxl15-Aug-02 17:52
mmlxl15-Aug-02 17:52 
GeneralRe: simulate mouse double click on other application Pin
Michael Dunn15-Aug-02 18:35
sitebuilderMichael Dunn15-Aug-02 18:35 
GeneralListbox w/ CEdit embeded Pin
alex.barylski15-Aug-02 16:09
alex.barylski15-Aug-02 16:09 
I have a list box which I would like to include a CEdit control to alow easy editing of fields.

So far I have embeded(composition) a CEdit control in the CListBox class and have created it in PreSubclassWindow and made it invisible. When you double click on the item the CEdit becomes visible...and when you click else where its hidden... Easy...

However I need to capture WM_SETFOCUS && WM_KILLFOCUS && WM_KEYDOWN (Return key) of the CEdit control inorder to know when to copy the contents from the CEdit control to the list item currently indexed.

I have tried:
OnCommand
WndProc
OnParentNotify

I'm doing something wrong or this is not how this is accomplished...I thought I could subclass the CEdit control with a custom WndProc, but this would require a static or global function and I won't be able to call the GetText/SetText functions of my listbox...(It's actually a custom control i've designed from scratch, not a windows LISTBOX).Big Grin | :-D

Anyways...how would I go abouts acommplishing what I want...???

Thanx

Cheers Smile | :)

"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
GeneralRe: Listbox w/ CEdit embeded Pin
Ernest Laurentin15-Aug-02 17:50
Ernest Laurentin15-Aug-02 17:50 
GeneralMFC Controls Pin
Anonymous15-Aug-02 13:49
Anonymous15-Aug-02 13:49 
GeneralRe: MFC Controls Pin
Anonymous15-Aug-02 14:29
Anonymous15-Aug-02 14:29 
Generallistsbox Pin
danag15-Aug-02 12:10
danag15-Aug-02 12:10 
GeneralRe: listsbox Pin
Steve L.15-Aug-02 15:50
Steve L.15-Aug-02 15:50 
Generalsql Pin
danag15-Aug-02 11:52
danag15-Aug-02 11:52 
GeneralRe: sql Pin
Bill Wilson15-Aug-02 12:00
Bill Wilson15-Aug-02 12:00 
GeneralRe: sql Pin
Stefan Pedersen15-Aug-02 23:05
Stefan Pedersen15-Aug-02 23:05 
GeneralopenGL and MFC Pin
lucy15-Aug-02 11:43
lucy15-Aug-02 11:43 
GeneralRe: openGL and MFC Pin
Mike Nordell15-Aug-02 18:33
Mike Nordell15-Aug-02 18:33 
GeneralRe: openGL and MFC Pin
Ernest Laurentin15-Aug-02 19:05
Ernest Laurentin15-Aug-02 19:05 
GeneralRe: openGL and MFC Pin
Roman Fadeyev15-Aug-02 23:32
Roman Fadeyev15-Aug-02 23:32 
GeneralRe: openGL and MFC Pin
lucy16-Aug-02 11:06
lucy16-Aug-02 11:06 
GeneralRe: openGL and MFC Pin
pankajdaga19-Aug-02 0:11
pankajdaga19-Aug-02 0:11 
GeneralINVALID_SET_FILE_POINTER isn't declared anywhere... Pin
redeemer15-Aug-02 11:06
redeemer15-Aug-02 11:06 
GeneralRe: INVALID_SET_FILE_POINTER isn't declared anywhere... Pin
Mukkie15-Aug-02 22:36
Mukkie15-Aug-02 22:36 
Questionmemory leak if I do this? Pin
ns15-Aug-02 10:31
ns15-Aug-02 10:31 

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.