Announcement

Collapse
No announcement yet.

DDT Menu Height

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Semen Matusovski
    replied
    Neil --
    There is no difference between SDK & DDT. So you can use GetSystemMetrics(%SM_CYMENU).
    But doubt that you need it.

    Typically it's necessary to have certain size of client area.
    For DDT:
    1) Using GetWindowRect & GetClientRect, to calculate difference in pixels (dx, dy) between window and client area's sizes.
    2) To translate a size of client area from units to pixels (Dialog Units To Pixela) - x, y.
    3) To set new window size (x + dx, y + dy), using SetWindowPos.

    ------------------
    E-MAIL: [email protected]

    Leave a comment:


  • Neil Hosgood
    started a topic DDT Menu Height

    DDT Menu Height

    Hiya people,
    Quick question. how can I get the height of a DDT menu?
    I have tried Control get size and GetWindowRect but always
    end up with 0.

    Any ideas?

    Thanx in advance,
    N.



    ------------------
Working...
X