Search:
Type: Posts; User: Ralf Schneider
Search:
Search took 0.05 seconds.
-
I read msdn, but an older version of IsDialogMessage, where WM_GETDLGCODE was not mentioned....
grgrggr
-
I found the solution:
https://groups.google.com/forum/#!topic/borland.public.delphi.vcl.components.writing/1WbnR3dFgVk
-
PreTranslateMessage is called, if VK_DOWN etc. is stroke.
and IsDialogMessage says that the WM_KEYDOWN-message has been processed. But where?
-
yes.
Now, I checked it with Spy++.
A WM_KEYDOWN-message was sent to my ctrl-window!
But no WM_KEYUP-message????
Maybe this goes to another window?
If I strike VK_SPACE, I get a WM_KEYDOWN,...
-
-
Hello again,
it has nothing to do with the styles.
I can use WM_KEYDOWN to detect normal keys.
How can I detect a keystroke on the cursor keys?
is it not WM_KEYDOWN?
-
Hello Victor,
I am near to the solution.
I think this problem has to do with the window-styles.
For the listbox I used the picture control in the dialog editor.
If I use the edit control, I can...
-
yes, I set the notify-property for the static-control in the dialog-editor.
I think, this is the same as SS_NOTIFY?!
Without this there was also no call to OnLButtonDown().
-
Hello Victor,
I put ON_WM_CHAR and ON_WM_KEYDOWN in the messagemap of CMyListCtrl.
But the corresponding function is never called!
If I press the arrow keys, the focus (set with OnLButtonDown)...
-
Hello,
to make the best solution, I started to create my own listbox.
Base class: CStatic.
It works pretty good, but now I entered one problem:
I can not detect key strokes. OnChar or...
-
Hello Victor,
SetItemHeight() sounds good.
It would solve my problems.
But way do OnMeasureItem exist, if everything can be handled with SetItemHeight().
-
Hello OReubens,
thank you.
Regarding CListBox:
when I use ownerdrawfixed, how can I change the height?
Ralf
-
Hello,
I need a ownerdraw CListBox where I can change the item height during working with the list.
The msdn says that I can specify the height in OnMeasureItem when the listbox will be created...
|
Click Here to Expand Forum to Full Width
|