Anti-nuisance lawsuit warning: The purpose of these notes is to remind me, Zoegond, of stuff or to help me work stuff out. They may contain mistakes.

Quick

  • ($a, $b....) = unpack("A2A7...", $packed)
  • push( array, list )

Friday, September 16, 2011

Windows API basics & gotchas

When supplying a window width and height to CreateWindow, NB that this will be the size of the whole window, not just the client rectangle (the usable bit). So to make a window with enough height to accommodate a client rect with height h, you'll need h + caption height + 2 * border height (for top and bottom borders)

Get the various heights with GetSystemMetrics, using constants SM_CYCAPTION and SM_CYBORDER respectively.

Followers

Blog Archive