SWP_NOZORDER, SWP_NOACTIVATE and Company...

  • Thread starter Thread starter Franky
  • Start date Start date
F

Franky

I program in C# and call some P/invoke like SetWindowPos .
They use a lot of parameter like SWP_NOZORDER AND SWP_NOACTIVATE... WHere or
how can I get the numeric value of this const?

Thanks

____________________
Franky
(e-mail address removed)
 
From the "WinUser.h" header file:
#define SWP_NOZORDER 0x0004
#define SWP_NOACTIVATE 0x0010

.... you can find the "WinUser.h" header file, and others, in "<VS.Net 2003
install dir>\Vc7\PlatformSDK\Include".
 
Wow super!
Tim Wilson said:
From the "WinUser.h" header file:
#define SWP_NOZORDER 0x0004
#define SWP_NOACTIVATE 0x0010

... you can find the "WinUser.h" header file, and others, in "<VS.Net 2003
install dir>\Vc7\PlatformSDK\Include".

--
Tim Wilson
.Net Compact Framework MVP
{cf147fdf-893d-4a88-b258-22f68a3dbc6a}

WHere
 
What about SHFH_SHOWTASKBAR??
Tim Wilson said:
From the "WinUser.h" header file:
#define SWP_NOZORDER 0x0004
#define SWP_NOACTIVATE 0x0010

... you can find the "WinUser.h" header file, and others, in "<VS.Net 2003
install dir>\Vc7\PlatformSDK\Include".

--
Tim Wilson
.Net Compact Framework MVP
{cf147fdf-893d-4a88-b258-22f68a3dbc6a}

WHere
 
Sometimes I find it easier to use the Api Text Viewer that comes with
Microsoft eMbedded Visual Tools 3.0. By default it should be installed to
"C:\Windows CE Tools\BIN\APILOAD.EXE" It is also listed in the All Programs
folder.

It finds things like SWP_NOZORDER and SWP_NOACTIVATE faster than me hunting
for them.

Thanks,
Chris Craft
http://www.cjcraft.com/
 
This one is specific to device application development. The location I gave
you in the last post is for desktop windows header files but since the
defined values for what you were after are the same as the device, and since
I assumed you had VS.Net 2003 installed, I thought that this would be a safe
location for you to look. But in this case you need the "aygshell.h" header
file. If you have installed a PPC SDK (usually because you installed the
eMbedded Visual Tools (EVC and EVB)), this header file should be on your
computer. For me, with the PPC 2002 SDK, it is in "D:\Windows CE
Tools\wce300\Pocket PC 2002\include". In case you don't have this file here
are the relevant defines:

#define SHFS_SHOWTASKBAR 0x0001
#define SHFS_HIDETASKBAR 0x0002
#define SHFS_SHOWSIPBUTTON 0x0004
#define SHFS_HIDESIPBUTTON 0x0008
#define SHFS_SHOWSTARTICON 0x0010
#define SHFS_HIDESTARTICON 0x0020
 
Back
Top