472,967 Members | 1,700 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,967 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 1579
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jake | last post by:
This is a great set of code for TAPI which does everything; however, I am having the worst time trying to figure out why the form is being reinitialized from the timerhandler instead of just...
1
by: smith | last post by:
I was recently set to release an app that used very common single instance code and hit the oddest issue. After many hours of full build tests I believe that it is duplicatable. Environment: ...
3
by: Andrew Moore | last post by:
Hi All, I have a managed C++ class that makes calls into the Win32 API. I specifically am trying to take a Handle from a .NET form and convert it to a HWND to pass to a Win32 functions. The...
1
by: smith | last post by:
I was recently set to release an app that used very common single instance code and hit the oddest issue. After many hours of full build tests I believe that it is duplicatable. Environment: ...
5
by: mikez | last post by:
Hi, We recently built a very basic file management system for a client in Access 2003 (to use with incoming tif scans). In it we used Microsoft's Document Imaging activex viewer (from Office...
2
by: --== Alain ==-- | last post by:
Hi, Under VC++.NET, i have a stupid issue with #include statement. Usually when we include some *.h file, we need to declare them before any #using <or #using namespace... to avoid issue at...
10
by: Stephany Young | last post by:
When one uses the System.Diagnostics.Process.Start method to launch a common or garden Console application, one can set the WindowStyle property of the StartInfo object to ProcessWindowStyle.Hidden...
1
by: ba.hons | last post by:
Hi all, Am wondering if anyone can help. I have received a C++ none COM DLL that i must use to interact to a peice of hardware. As I am more confident in C# I decided to create a wrapper for...
1
by: =?Utf-8?B?U3JpbWFu?= | last post by:
We are trying to bring the window on top if its already running(Restore). The code works fine 90% of the time but sometimes it does not. The reason it does not work at times is coz the window...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.