471,350 Members | 1,692 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,350 software developers and data experts.

getstockobject

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

Dec 14 '05 #1
1 4422
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,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"yogi" <yo***********@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
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

Dec 14 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Matt | last post: by
1 post views Thread by xc | last post: by
2 posts views Thread by dlgproc | last post: by
11 posts views Thread by Tom Shelton | last post: by
6 posts views Thread by Alex Pierson | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.