Click here to Skip to main content
15,900,108 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionstd c++ i/o with files Pin
Peter Charlesworth4-Mar-06 8:15
Peter Charlesworth4-Mar-06 8:15 
AnswerRe: std c++ i/o with files Pin
PJ Arends4-Mar-06 11:40
professionalPJ Arends4-Mar-06 11:40 
GeneralRe: std c++ i/o with files Pin
Peter Charlesworth4-Mar-06 11:50
Peter Charlesworth4-Mar-06 11:50 
GeneralRe: std c++ i/o with files Pin
John R. Shaw4-Mar-06 15:22
John R. Shaw4-Mar-06 15:22 
AnswerKerridge Pin
Rob Caldecott5-Mar-06 6:35
Rob Caldecott5-Mar-06 6:35 
GeneralRe: Kerridge Pin
Peter Charlesworth5-Mar-06 7:37
Peter Charlesworth5-Mar-06 7:37 
Questioncreateprocess Pin
Sam 20064-Mar-06 6:58
Sam 20064-Mar-06 6:58 
AnswerRe: createprocess Pin
PJ Arends4-Mar-06 11:52
professionalPJ Arends4-Mar-06 11:52 
QuestionDeploying a VC++ application on a target machine Pin
Themis4-Mar-06 6:53
Themis4-Mar-06 6:53 
AnswerRe: Deploying a VC++ application on a target machine Pin
Richard_484-Mar-06 12:50
Richard_484-Mar-06 12:50 
GeneralRe: Deploying a VC++ application on a target machine Pin
Themis4-Mar-06 21:27
Themis4-Mar-06 21:27 
GeneralRe: Deploying a VC++ application on a target machine Pin
Gary R. Wheeler5-Mar-06 3:07
Gary R. Wheeler5-Mar-06 3:07 
AnswerRe: Deploying a VC++ application on a target machine Pin
Michael Dunn5-Mar-06 6:34
sitebuilderMichael Dunn5-Mar-06 6:34 
QuestionText Justification Pin
Richard_484-Mar-06 5:50
Richard_484-Mar-06 5:50 
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 

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.