"Print & Layered"

v.2007-02-28 (init: v.2005-04-08)

API demonstrator by kero <geocities.com/xmemor>
http://www.geocities.com/xmemor/2lz/tinyasm.html


USAGE

You can set color of window finder frame via clicking small statics overhead:
1) Captured (F9) color, 2) Hidden frame, 3) Black, 4) White.

Right click to standard caption buttons: you can set/cancel WS_THICKFRAME, Help-button.

PrintWindow_M procedure: it is based on PrintWindow (XP), but can print also controls with CS_PARENTDC, CS_CLASSDC, or CS_OWNDC styles.

Window caption:  contains PID of instance.

Top checkbox:  allows or disallows to feel key F8 (for working with several instances), key F9 (capture color of pixel under cursor).

Next checkbox:  for verify hWnd fixation; also can free hWnd.


EditBox:
 1st line: 
  coordinates of point under cursor;
  indicator: whether the specified point is within the clipping region of a device context (1) or not (0)  // this is result of PtVisible //;
  indicator: whether the specified point is within the window rectangle (1) or not (0);
  indicator: whether the specified point is within the window region (1), or not (0), or region dosn't exist at all (-1);
  NCHITTEST info via DefWindowProc / via SendMessageTimeout;

 2nd line: 
  RGB pixel from screen DC, pixel from compatible memory DC, pixel from window DC;
  position of captured image on window DC;

 3d line: 
  return value; 
  current alpha-channel value; 
  difference between window rectangle and its client rectangle; 
  gdi and user GUI resources;

 4th line: 
  current or fixed hWnd;
  CtrlID or hMenu (hex/dec);
  Z-order of fixed window regarding all windows that contain current point under cursor / number of all these windows;

 5th line: 
  window class    // result of GetDCOrgEx    result of RectVisible;

 6th line: 
  window text;


Cursor + key F8  => fix/free hWnd under cursor.

Cursor + key F9  => fix color of pixel under cursor.

Drag'n'drop / key Ctrl + drag'n'drop  bitmap to main window  => new background

Right click main window  => restore default background.

Resize main window + left double-click  => resize pattern brush.

"WM_PRINT", "PrintWindow (XP)", "PrintWindow_M", "AlphaPrintWindow", "BitBlt /srccopy", "BitBlt /srccopy+captureblt"  => 
 => print fixed window to main DC and to Clipboard.

Drag'n'drop printed image on main window DC.

Trackbar  => alpha-channel value; checkbox "COLORKEY"  => COLORKEY or ALPHA (i.e. hole or glass).

Of course you guess what other controls do, only note: checkboxes are also monitors.
