issue with collecting Hwnd

  • Thread starter Thread starter --== Alain ==--
  • Start date Start date
A

--== Alain ==--

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;
}
 
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.

| 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;
| }
 
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.
 
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.
 
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
 
Back
Top