getstockobject

  • Thread starter Thread starter yogi
  • Start date Start date
Y

yogi

hi all,

i m developing an application on compact framework using c# in which i
need to use getstockobject pinvoke for which i need to get the constant
values for NULL_BRUSH,HOLLOW_BRUSH used as a parameter in
getstockobject call.

[DllImport("coredll",SetLastError=true)]
public static extern IntPtr GetStockObject(int fnObject);

i have no idea about from where to get the constant values and exact
signature for most of the api method calls.

Is there any tool like apiviewer available for .net compact framework
too ?

wud be waiting for ur replies.

thanks

Yogi
 
Hi,

First stop could be pinvoke.net.
You can get the values of the objects from the wingdi.h file ( I included
the brush values at the bottom) , IIRC you get it if you install the PPC SDK

Also you can get better answer in the CF ng.


#define WHITE_BRUSH 0
#define LTGRAY_BRUSH 1
#define GRAY_BRUSH 2
#define DKGRAY_BRUSH 3
#define BLACK_BRUSH 4
#define NULL_BRUSH 5
#define HOLLOW_BRUSH NULL_BRUSH
#define WHITE_PEN 6
#define BLACK_PEN 7
#define NULL_PEN 8
#define SYSTEM_FONT 13
#define DEFAULT_PALETTE 15


cheers,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top