473,507 Members | 2,472 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4533
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
8863
by: Matt | last post by:
I'm having problems changing the text colors in an edit box in my program. Here's what I'm trying to do, under WM_CREATE I have the following: ClockFace = CreateWindowEx(0, "EDIT", "0.0.00",...
1
2948
by: xc | last post by:
Greetings. I encountered a wield problem when grabing screen images. Sometimes in some computers I can capture the screen, but other times not so. In some computer I cannot capture the screen...
2
5811
by: dlgproc | last post by:
I wanted to display text in a label on a Windows form in a fixed-width font. In C++ Windows API programming I’ve always used: GetStockObject(SYSTEM_FIXED_FONT). Using the following C# code...
11
4166
by: Tom Shelton | last post by:
Last night I was feeling a little bored and I happend to come across a bit of code I wrote way back in the VB5 days. This code, was a simple little windows application - but was created strictly...
6
2650
by: Alex Pierson | last post by:
I searched the VB and VB.net groups endlessly and cannot find any code to help me do this. What I'm trying to do is to draw a highlighted rectangle around a child window from another...
2
4589
by: dever | last post by:
I checked my color printers's Printersettings.SupportsColor, which all showed false. What is wrong that I could not use this property. Also, what other way to detect if a printer is color...
2
1724
by: Eric Lilja | last post by:
This complete program compiles just fine: void foo(int, int = 0); void foo(int a, int b) { (void)a; (void)b; } int
3
1764
by: Register456 | last post by:
int f1(){ CreateWindow("edit"...) } int STDCALL WinMain(){etc...} why this gives errorr..: CreateWindowA is undefined? its still defined i dont understand why. can anyone point out some...
4
4120
by: muddy22 | last post by:
I'm only having a problem with a small part, i'm fairly new to computer programming and the program i'm using is Dev-C++. The part that i'm having a problem with is this: int WINAPI WinMain...
0
7321
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7034
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7488
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1544
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
412
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.