I'm a begginer with win32 api, and i try to make a SysListview32 (aka WC_listview) with draggable columns to modify it order with the mouse. To do this, i create it with the LVS_EX_HEADERDRAGDROP etended style, like this :
I am trying to use GDI+ within my MFC dialog based application with multiple child dialogs. On one of the child dialogs, I am trying to draw an image from an array of 8 bit BYTE pixel data. Here is how my flow process is for this-
Variables declared in my child dialog's header file.
Then in my OnInitDialog() function, I do the following
Whenever I run my application, it throws an error at imagedisplay->DrawImage function, if I comment it out it doesn't throw the error. I am sure there is something simple that I am missing here or the way I am trying to draw is not right, any ideas/suggestions?
Strange ... I have checked if parent of CGridCtrlExt (CGridCtrl), has PreTranslateMessage, but no, has not ... more over, I override CGridCtrlExt::OnChar, CGridCtrlExt::OnSysChar, CGridCtrlExt::OnSysKeyDown, none of them tell me when I press the shift key ... weird ... I don't know where to search the issue ...
I guess it is my mistake !!! : I already have an accelerator, shift + left key, on menu item command ... if this is the cause, is there any possibility to know in CGridCtrlExt, of on CDialog which contain this control, to know when I pressed Shift and left key ?