473,397 Members | 2,084 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 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 1598
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.