Click here to Skip to main content
15,924,367 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: I only try to add a new message ,this is my first. Pin
KaЯl8-Dec-03 2:03
KaЯl8-Dec-03 2:03 
GeneralIXMLDOMDocument + memory leaks Pin
Member 4558386-Dec-03 4:06
Member 4558386-Dec-03 4:06 
GeneralRe: IXMLDOMDocument + memory leaks Pin
Anonymous6-Dec-03 4:31
Anonymous6-Dec-03 4:31 
GeneralRe: IXMLDOMDocument + memory leaks Pin
Anonymous6-Dec-03 4:57
Anonymous6-Dec-03 4:57 
GeneralRe: IXMLDOMDocument + memory leaks Pin
LoverOfVCpp6-Dec-03 5:31
LoverOfVCpp6-Dec-03 5:31 
Generaleditable List Control in CFormView Pin
Member 2224466-Dec-03 2:57
Member 2224466-Dec-03 2:57 
GeneralRe: editable List Control in CFormView Pin
Alexander M.,6-Dec-03 13:21
Alexander M.,6-Dec-03 13:21 
GeneralRe: editable List Control in CFormView Pin
Roger Allen8-Dec-03 1:46
Roger Allen8-Dec-03 1:46 
A typical method would be to handle the NK_DBLCLK message for the control. From there, get the mouse position (GetCursorPos), translate it to the control coordinates (ScreenToClient()) and do a hit test

From this you can identify the item index and the sub item (column) number. You can then get that items rectangle (GetItemRect). As you want to do an edit, depedning on what kind of edit you can:

Create a new control and place it at the items rectangle position/size, destroy the item when it loses the focus, and apply its changes. Or you could move an existing control on your form which was not visible/disabled to the right location and enable it. Then hide it when it loses the focus as before.


Roger Allen - Sonork 100.10016
If your dead and reading this, then you have no life!
GeneralEditable List Control in CFrame View Pin
Member 2224466-Dec-03 2:39
Member 2224466-Dec-03 2:39 
GeneralEditable List Control in CFrame View Pin
Member 2224466-Dec-03 2:38
Member 2224466-Dec-03 2:38 
QuestionMy Static IP? Pin
BaldwinMartin6-Dec-03 0:58
BaldwinMartin6-Dec-03 0:58 
AnswerRe: My Static IP? Pin
Alexander M.,6-Dec-03 1:20
Alexander M.,6-Dec-03 1:20 
GeneralRe: My Static IP? Pin
BaldwinMartin6-Dec-03 2:37
BaldwinMartin6-Dec-03 2:37 
GeneralRe: My Static IP? Pin
David Crow8-Dec-03 8:36
David Crow8-Dec-03 8:36 
AnswerRe: My Static IP? Pin
Roger Wright6-Dec-03 6:16
professionalRoger Wright6-Dec-03 6:16 
GeneralRe: My Static IP? Pin
BaldwinMartin6-Dec-03 8:27
BaldwinMartin6-Dec-03 8:27 
GeneralChanging underline color in RichEdit control Pin
leppie6-Dec-03 0:19
leppie6-Dec-03 0:19 
GeneralVisual C++ Resolution Diference Pin
oakbox5-Dec-03 22:33
oakbox5-Dec-03 22:33 
GeneralFile Copying-please help Pin
satadru5-Dec-03 22:23
satadru5-Dec-03 22:23 
GeneralRe: File Copying-please help Pin
Prakash Nadar5-Dec-03 22:50
Prakash Nadar5-Dec-03 22:50 
GeneralRe: File Copying-please help Pin
Robert Kuster5-Dec-03 23:09
Robert Kuster5-Dec-03 23:09 
GeneralRe: File Copying-please help Pin
navawa6-Dec-03 4:20
navawa6-Dec-03 4:20 
GeneralFile Copying-please help Pin
satadru5-Dec-03 22:23
satadru5-Dec-03 22:23 
GeneralRe: File Copying-please help Pin
Alexander M.,6-Dec-03 1:22
Alexander M.,6-Dec-03 1:22 
GeneralPicture formats Pin
engahmadm5-Dec-03 21:58
engahmadm5-Dec-03 21:58 

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.