Click here to Skip to main content
15,890,282 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe Post of earlier message - ANSI String in Classes Pin
Tom Moore4-Mar-06 4:45
Tom Moore4-Mar-06 4:45 
AnswerRe: Re Post of earlier message - ANSI String in Classes Pin
Nemanja Trifunovic4-Mar-06 4:47
Nemanja Trifunovic4-Mar-06 4:47 
GeneralRe: Re Post of earlier message - ANSI String in Classes Pin
Tom Moore4-Mar-06 5:01
Tom Moore4-Mar-06 5:01 
GeneralRe: Re Post of earlier message - ANSI String in Classes Pin
Nemanja Trifunovic4-Mar-06 5:20
Nemanja Trifunovic4-Mar-06 5:20 
QuestionStack Overflow, possible cause? Pin
Waldermort4-Mar-06 4:16
Waldermort4-Mar-06 4:16 
AnswerRe: Stack Overflow, possible cause? Pin
Christian Graus4-Mar-06 5:13
protectorChristian Graus4-Mar-06 5:13 
GeneralRe: Stack Overflow, possible cause? Pin
Waldermort4-Mar-06 5:33
Waldermort4-Mar-06 5:33 
GeneralI FOUND IT!!! Pin
Waldermort4-Mar-06 7:57
Waldermort4-Mar-06 7:57 
I was looking in totaly the wrong place. The problem lies within WM_NOTIFY
case WM_NOTIFY:
    switch(LOWORD(wParam))
    {
        case IDC_LIST:
            if((((LPNMHDR)lParam)->code == NM_DBLCLK)||
                (((LPNMLVKEYDOWN)lParam)->wVKey == VK_SPACE)||
                (((LPNMLVKEYDOWN)lParam)->wVKey == VK_RIGHT)) {
                    data->display_student_record();
            }
            if(((LPNMLVKEYDOWN)lParam)->wVKey == VK_LEFT) {
                    data->display_view_options(ID_VIEW_CLASS);
            }
            if(((LPNMHDR)lParam)->code == LVN_ITEMCHANGED) {
            //      data->display_extra_data();
            }
        break;
    }
break;

For some reason the LPNMLVKEYDOWN is being triggered, first when drawing more than 32 items, and when scrolling (while holding the up down keys). I can't understand why this is happening. In the above code I check for specific virtual keys, they are being sent even though they have not been pressed. I have also noticed that it makes no difference by returning true or false. Unless they 'real' key is pressed the app just fills the stack. I wonder if this is a bug in the library?

I have had to comment out those lines, which now leaves my app feeling like a brick boat. I am unable to navigate through the list view using they keys :/
GeneralRe: I FOUND IT!!! Pin
John R. Shaw4-Mar-06 15:51
John R. Shaw4-Mar-06 15:51 
GeneralRe: I FOUND IT!!! Pin
Waldermort4-Mar-06 21:08
Waldermort4-Mar-06 21:08 
GeneralRe: I FOUND IT!!! Pin
John R. Shaw5-Mar-06 14:21
John R. Shaw5-Mar-06 14:21 
Questionmemcat() Pin
chaitanya224-Mar-06 3:44
chaitanya224-Mar-06 3:44 
AnswerRe: memcat() Pin
Gary R. Wheeler4-Mar-06 4:28
Gary R. Wheeler4-Mar-06 4:28 
QuestionAppending arrays Pin
chaitanya224-Mar-06 3:43
chaitanya224-Mar-06 3:43 
AnswerRe: Appending arrays Pin
John R. Shaw4-Mar-06 15:56
John R. Shaw4-Mar-06 15:56 
Questionword counter using threadings Pin
nanjesh4-Mar-06 3:37
nanjesh4-Mar-06 3:37 
AnswerRe: word counter using threadings Pin
Saurabh.Garg4-Mar-06 13:40
Saurabh.Garg4-Mar-06 13:40 
Questionword counter using threadings Pin
nanjesh4-Mar-06 3:36
nanjesh4-Mar-06 3:36 
Questionsimulate a real race condition Pin
zhshqzyc4-Mar-06 2:25
zhshqzyc4-Mar-06 2:25 
QuestionCan I use the ANSI String Class in a normal class Pin
Tom Moore4-Mar-06 1:36
Tom Moore4-Mar-06 1:36 
AnswerRe: Can I use the ANSI String Class in a normal class Pin
Gary R. Wheeler4-Mar-06 1:51
Gary R. Wheeler4-Mar-06 1:51 
Questioncan I do win32 app without vc? Pin
derek74-Mar-06 1:19
derek74-Mar-06 1:19 
AnswerRe: can I do win32 app without vc? Pin
Nemanja Trifunovic4-Mar-06 2:37
Nemanja Trifunovic4-Mar-06 2:37 
QuestionCSocket: Making the application wait till a Blocking call gets over Pin
Spykraft3-Mar-06 23:20
Spykraft3-Mar-06 23:20 
QuestionHow to use WSAAsyncSelect in windows service Pin
milkyhonglee3-Mar-06 22:15
milkyhonglee3-Mar-06 22:15 

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.