471,075 Members | 1,395 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

issue with collecting Hwnd

Hi,

When i debugged my code (see below) from my overrider WndProc method, i
discovered that update has alway left, right, botton and top set to 0.
therefore i wonder if my hwnd point to the right value.

how can i know that ?

thx.

Al.
case WM_PAINT:
if(m.Msg == WM_PAINT && this.View ==
System::Windows::Forms::View::Details && this.Columns.Count>0)
{
HWND hwnd = (HWND)m.HWnd.ToPointer();
RECT* update;
if(::GetUpdateRect(hwnd,update, false) == 0)
{
return;
}
Nov 1 '06 #1
4 1494
This code is NOT C#, this is very confusing because in most posts you don't
even mention whether you are using VC or C#, please post to the vc NG for
issues related to C++.

Willy.

"--== Alain ==--" <no****@noemail.comwrote in message
news:Oo**************@TK2MSFTNGP03.phx.gbl...
| Hi,
|
| When i debugged my code (see below) from my overrider WndProc method, i
| discovered that update has alway left, right, botton and top set to 0.
| therefore i wonder if my hwnd point to the right value.
|
| how can i know that ?
|
| thx.
|
| Al.
|
|
| case WM_PAINT:
| if(m.Msg == WM_PAINT && this.View ==
| System::Windows::Forms::View::Details && this.Columns.Count>0)
| {
| HWND hwnd = (HWND)m.HWnd.ToPointer();
| RECT* update;
| if(::GetUpdateRect(hwnd,update, false) == 0)
| {
| return;
| }
Nov 1 '06 #2
From the code you posted, it looks like you're simply posting in the wrong
newsgroup. This is the newsgroup for C# -- not C++.

Best Regards,
Dustin Campbell
Developer Express Inc.
Nov 1 '06 #3
Sorry gents...

it's true i'm under VC++.NET, and i try to migrate the code as much as
possible before to post here.

Why i post here ? EZ. in NG for VC++.NET, we must wait hous before answer...

here i was able to improve my code and to understand more than in VC.NET..

Al.

Willy Denoyette [MVP] wrote:
This code is NOT C#, this is very confusing because in most posts you don't
even mention whether you are using VC or C#, please post to the vc NG for
issues related to C++.

Willy.

"--== Alain ==--" <no****@noemail.comwrote in message
news:Oo**************@TK2MSFTNGP03.phx.gbl...
| Hi,
|
| When i debugged my code (see below) from my overrider WndProc method, i
| discovered that update has alway left, right, botton and top set to 0.
| therefore i wonder if my hwnd point to the right value.
|
| how can i know that ?
|
| thx.
|
| Al.
|
|
| case WM_PAINT:
| if(m.Msg == WM_PAINT && this.View ==
| System::Windows::Forms::View::Details && this.Columns.Count>0)
| {
| HWND hwnd = (HWND)m.HWnd.ToPointer();
| RECT* update;
| if(::GetUpdateRect(hwnd,update, false) == 0)
| {
| return;
| }

Nov 1 '06 #4
Sorry gents...
>
it's true i'm under VC++.NET, and i try to migrate the code as much as
possible before to post here.

Why i post here ? EZ. in NG for VC++.NET, we must wait hous before
answer...

here i was able to improve my code and to understand more than in
VC.NET..
Mainly because it's a vastly different language. Many of the members in this
newsgroup aren't as familiar with VC++.NET so your chances of getting a real,
working answer is a bit slimmer here than in a newsgroup intended for users
that are more familiar with the language that you're working.

But, I'm surprised that you didn't mention that you were working in VC++.NET
before. Many of your earlier posts were pretty confusing with this detail
left out. In this newsgroup, it's ASSUMED that you're working in C# unless
you specify otherwise.

Best Regards,
Dustin Campbell
Developer Express Inc.
Nov 1 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Jake | last post: by
3 posts views Thread by Andrew Moore | last post: by
2 posts views Thread by --== Alain ==-- | last post: by
10 posts views Thread by Stephany Young | last post: by
1 post views Thread by ba.hons | last post: by
1 post views Thread by =?Utf-8?B?U3JpbWFu?= | 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.