pinvoke icon indicating copy to clipboard operation
pinvoke copied to clipboard

Object ID constants from WinUser.h

Open jrimig opened this issue 5 years ago • 0 comments

WinUser.h defines object ID constants (e.g. OBJID_WINDOW, OBJID_SYSMENU, etc) that are useful when implementing the WinEventProc delegate defined in User32.cs. Here is how I define them in my code. Are these constants something that can be a part of this project?

public const int OBJID_WINDOW               =   0;
public const int OBJID_SYSMENU              =  -1;
public const int OBJID_TITLEBAR             =  -2;
public const int OBJID_MENU                 =  -3;
public const int OBJID_CLIENT               =  -4;
public const int OBJID_VSCROLL              =  -5;
public const int OBJID_HSCROLL              =  -6;
public const int OBJID_SIZEGRIP             =  -7;
public const int OBJID_CARET                =  -8;
public const int OBJID_CURSOR               =  -9;
public const int OBJID_ALERT                = -10;
public const int OBJID_SOUND                = -11;
public const int OBJID_QUERYCLASSNAMEIDX    = -12;
public const int OBJID_NATIVEOM             = -13;

jrimig avatar Jul 27 '20 18:07 jrimig