R
Ron Vecchi
I am creating my own MainMenu control similar to VS.Net. (yes I know theirs
some out their).
I have predominatly been a web developer for about 5 years and am playing
with Windows forms. So this should help me learn.
My question is about IntPtr.
Basically what is it, I know its a pointer but what is a pointer.(of course
I know it points to something but how) .
In my MenuControl I needed a graphics object in my OnPaint override.
This works great but I dont know why...
//////////////////////////////////
protected override void OnPaint(PaintEventArgs e) {
this.rmm_Graphics = Graphics.FromHwnd(this.Parent.Handle);
}
I think by understanding what pointers are and how they work I will
understand exactly how I extracted the grapics object from my containing
form.
Does any one know of some newbie windows resopurces that expain this on a
moronic level.
Thanks,
some out their).
I have predominatly been a web developer for about 5 years and am playing
with Windows forms. So this should help me learn.
My question is about IntPtr.
Basically what is it, I know its a pointer but what is a pointer.(of course
I know it points to something but how) .
In my MenuControl I needed a graphics object in my OnPaint override.
This works great but I dont know why...
//////////////////////////////////
protected override void OnPaint(PaintEventArgs e) {
this.rmm_Graphics = Graphics.FromHwnd(this.Parent.Handle);
}
I think by understanding what pointers are and how they work I will
understand exactly how I extracted the grapics object from my containing
form.
Does any one know of some newbie windows resopurces that expain this on a
moronic level.
Thanks,