CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Ralf Schneider

Search: Search took 0.03 seconds.

  1. Re: [RESOLVED] Change item height in CListBox / CListCtrl

    I read msdn, but an older version of IsDialogMessage, where WM_GETDLGCODE was not mentioned....
    grgrggr
  2. Re: Change item height in CListBox / CListCtrl

    I found the solution:
    https://groups.google.com/forum/#!topic/borland.public.delphi.vcl.components.writing/1WbnR3dFgVk
  3. Re: Change item height in CListBox / CListCtrl

    PreTranslateMessage is called, if VK_DOWN etc. is stroke.
    and IsDialogMessage says that the WM_KEYDOWN-message has been processed. But where?
  4. Re: Change item height in CListBox / CListCtrl

    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,...
  5. Re: Change item height in CListBox / CListCtrl

    e.g. cursor up/down!
  6. Re: Change item height in CListBox / CListCtrl

    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?
  7. Re: Change item height in CListBox / CListCtrl

    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...
  8. Re: Change item height in CListBox / CListCtrl

    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().
  9. Re: Change item height in CListBox / CListCtrl

    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)...
  10. Re: Change item height in CListBox / CListCtrl

    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...
  11. Re: Change item height in CListBox / CListCtrl

    Hello Victor,

    SetItemHeight() sounds good.
    It would solve my problems.
    But way do OnMeasureItem exist, if everything can be handled with SetItemHeight().
  12. Re: Change item height in CListBox / CListCtrl

    Hello OReubens,

    thank you.

    Regarding CListBox:
    when I use ownerdrawfixed, how can I change the height?

    Ralf
  13. [RESOLVED] Change item height in CListBox / CListCtrl

    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...
Results 1 to 13 of 13





Click Here to Expand Forum to Full Width

Featured