Click here to Skip to main content
15,891,607 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow long int can the threads ID be... Pin
pl_kode22-May-08 4:03
pl_kode22-May-08 4:03 
AnswerRe: How long int can the threads ID be... Pin
CPallini22-May-08 4:13
mveCPallini22-May-08 4:13 
AnswerRe: How long int can the threads ID be... Pin
Mike Dimmick22-May-08 4:39
Mike Dimmick22-May-08 4:39 
QuestionProblem with select row in list control Pin
tataxin22-May-08 2:56
tataxin22-May-08 2:56 
AnswerRe: Problem with select row in list control Pin
David Crow22-May-08 3:28
David Crow22-May-08 3:28 
GeneralRe: Problem with select row in list control Pin
tataxin22-May-08 3:43
tataxin22-May-08 3:43 
QuestionRe: Problem with select row in list control Pin
David Crow22-May-08 4:16
David Crow22-May-08 4:16 
AnswerRe: Problem with select row in list control Pin
tataxin22-May-08 4:35
tataxin22-May-08 4:35 
oh, that's great. I try to find out this, but not success up to now.

And, can you explain some more, what should I change in my source code now? I tried some thing but not correct.

the structure of pNMLV is
typedef struct tagNMLISTVIEW {
    NMHDR hdr;
    int iItem;
    int iSubItem;
    UINT uNewState;
    UINT uOldState;
    UINT uChanged;
    POINT ptAction;
    LPARAM lParam;
} NMLISTVIEW, *LPNMLISTVIEW;

which member should I take and how to compare with LVIS_FOCUSED, LVIS_SELECTED?
In fact, I tried this
int x = pNMLV->uChanged;
if (x == ){
		// draw rectangular here
	} else if (x == LVIS_FOCUSED){
		// remove old rectangular here
	} else if (x == LVIS_SELECTED){
		// do nothing
	}


but it's always be LVIS_FOCUSED|LVIS_SELECTED, so it always draws and draws
GeneralRe: Problem with select row in list control Pin
David Crow22-May-08 5:41
David Crow22-May-08 5:41 
AnswerRe: Problem with select row in list control Pin
tataxin22-May-08 5:49
tataxin22-May-08 5:49 
QuestionGetDIBits Pin
subramanyeswari22-May-08 2:54
subramanyeswari22-May-08 2:54 
AnswerRe: GetDIBits Pin
CPallini22-May-08 3:30
mveCPallini22-May-08 3:30 
AnswerRe: GetDIBits Pin
Hamid_RT22-May-08 4:21
Hamid_RT22-May-08 4:21 
GeneralRe: GetDIBits Pin
subramanyeswari22-May-08 18:18
subramanyeswari22-May-08 18:18 
GeneralRe: GetDIBits Pin
Hamid_RT22-May-08 19:01
Hamid_RT22-May-08 19:01 
GeneralRe: GetDIBits Pin
subramanyeswari22-May-08 19:07
subramanyeswari22-May-08 19:07 
GeneralRe: GetDIBits Pin
Hamid_RT22-May-08 19:17
Hamid_RT22-May-08 19:17 
GeneralRe: GetDIBits Pin
subramanyeswari22-May-08 19:22
subramanyeswari22-May-08 19:22 
GeneralRe: GetDIBits Pin
Hamid_RT22-May-08 19:29
Hamid_RT22-May-08 19:29 
GeneralRe: GetDIBits Pin
subramanyeswari22-May-08 19:34
subramanyeswari22-May-08 19:34 
GeneralRe: GetDIBits Pin
Hamid_RT22-May-08 19:46
Hamid_RT22-May-08 19:46 
GeneralRe: GetDIBits Pin
subramanyeswari22-May-08 19:51
subramanyeswari22-May-08 19:51 
GeneralRe: GetDIBits Pin
Hamid_RT22-May-08 20:15
Hamid_RT22-May-08 20:15 
GeneralRe: GetDIBits Pin
subramanyeswari23-May-08 0:10
subramanyeswari23-May-08 0:10 
GeneralRe: GetDIBits Pin
Hamid_RT23-May-08 0:35
Hamid_RT23-May-08 0:35 

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.