 |
|
 |
Thanks searching for it from long back.
|
|
|
|
 |
|
 |
Thank you a lot... i passed all the day searching for this
|
|
|
|
 |
|
 |
Saved me some time, Thanks!
Don Davis
|
|
|
|
 |
|
 |
:(lose SC_CLOSE,SC_MOVE,SC_MAXIMIZE,SC_MINIMIZE,SC_SIZE!
|
|
|
|
 |
|
|
 |
|
 |
I'm relatively new to Windows API stuff (ie: disclaimer), but this could be a useful addendum to the above which I grabbed from MSDN and the WinUser.h file :
public enum WM_SYSCOMMAND_WPARAM
{
SC_FIRST = 0xF000,
SC_SIZE = SC_FIRST, // Sizes the window.
SC_MOVE = SC_FIRST + 0x10, // Moves the window.
SC_MINIMIZE = SC_FIRST + 0x20, // Minimizes the window.
SC_MAXIMIZE = SC_FIRST + 0x30, // Maximizes the window.
SC_NEXTWINDOW = SC_FIRST + 0x40, // Moves to the next window.
SC_PREVWINDOW = SC_FIRST + 0x50, // Moves to the previous window.
SC_CLOSE = SC_FIRST + 0x60, // Closes the window.
SC_VSCROLL = SC_FIRST + 0x70, //Scrolls vertically
SC_HSCROLL = SC_FIRST + 0x80, // Scrolls horizontally.
SC_MOUSEMENU = SC_FIRST + 0x90, // Retrieves the window menu as a result of a mouse click.
SC_KEYMENU = SC_FIRST + 0x100, // Retrieves the window menu as a result of a keystroke. For more information, see the Remarks section.
SC_ARRANGE = SC_FIRST + 0x110,
SC_RESTORE = SC_FIRST + 0x120, // Restores the window to its normal position and size.
SC_TASKLIST = SC_FIRST + 0x130, // Activates the Start menu.
SC_SCREENSAVE = SC_FIRST + 0x140, // Executes the screen saver application specified in the [boot] section of the System.ini file.
SC_HOTKEY = SC_FIRST + 0x150, //Activates the window associated with the application-specified hot key. The lParam parameter identifies the window to activate.
SC_DEFAULT = SC_FIRST + 0x160, // Selects the default item; the user double-clicked the window menu.
SC_MONITORPOWER = SC_FIRST + 0x170, // Sets the state of the display. This command supports devices that have power-saving features, such as a battery-powered personal computer.
//The lParam parameter can have the following values:
//1 - the display is going to low power
//2 - the display is being shut off
SC_CONTEXTHELP = SC_FIRST + 0x180, // Changes the cursor to a question mark with a pointer. If the user then clicks a control in the dialog box, the control receives a WM_HELP message.
SC_SEPARATOR = 0xF00F
}
|
|
|
|
 |
|
 |
Thanks a lot.
Nice to found it.
www.goldengel.ch
|
|
|
|
 |
|
 |
You've done good job man. I've been searching for this long before! Again, thank you!
Learn and learn
|
|
|
|
 |
|
|
 |
|
 |
I'm not sure, but I thing it's better to declare the enum as uint type.
I find your work is this very helpfull.
Thanks.
Olaf Herrmann
|
|
|
|
 |
|
 |
Olaf Herrmann wrote:
I'm not sure, but I thing it's better to declare the enum as uint type.
I find your work is this very helpfull.
Thanks.
Olaf Herrmann
That’s actually what I did at first, but then I noticed that the Msg Property of the Message struct is defined as an int. I wasn’t sure whether MS had any intention of using the negative range of the integer for .net messages in the future, but I figured that they must have had a reason for it.
Thanks for checking over things,
Anthony
|
|
|
|
 |
|
 |
I think the reason you find int instead of uint is because uint is not CLS compliant.
|
|
|
|
 |
|
 |
That’s sounds like a better explanation than mine, and an even better reason to keep the enum defined as int.
|
|
|
|
 |
|
 |
Sure for that.
__ARMEN_H__
armenh@cit.am
|
|
|
|
 |
|
 |
Thanks for this list! I will surely find it useful!
Jeremy Pullicino
"Hey man, Taliban, Tali me Banana."
|
|
|
|
 |