473,405 Members | 2,272 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,405 software developers and data experts.

Get hWnd of main app

Noob Question:

how do i get the hwnd of the main program?

thanks
Jan 30 '09 #1
1 4004
Banfa
9,065 Expert Mod 8TB
A program has no hWnd, only windows have hWnd.

If you question is how do i get the hWnd of the main Window then there are a number of ways but it rather depends how you created it and what system you are using

.NET
MFC
direct calls to WIN32
Jan 30 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: LT | last post by:
Hello, I have the following problem. I'm using the CMonthCalCtrl calendar control. I need to emphasize some of days, so I'm handling the MCN_GETDAYSTATE event. The problem is when my handler...
1
by: Tamir Khason | last post by:
I need to fetch hWnd IntPtr of the form, which hold user control from inside the user control. How to do this. this.Handle returns wrong results. Another question form the same field: I want to...
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...
17
by: Bonj | last post by:
Is PostQuitMessage(?) different to PostMessage(hWnd, WM_QUIT, ... ) ? I've got a window in a DLL (the same one experiencing the issue below, "return value of WM_QUIT") in which PostMessage(hWnd,...
4
by: --== Alain ==-- | last post by:
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...
15
by: =?Utf-8?B?Sm9hY2hpbQ==?= | last post by:
How can I pass a C++ HWND to and from C# and Managed C++?
2
by: thesayan | last post by:
i am currently using vb 2005 and i am translating an old program from vb6 that a friend gave to me. my current error is this: lWindowHandle = Form1.hWnd 'hWnd is not a member of App.Form1' ...
11
by: =?ISO-8859-15?Q?Kolja_M=E4rtens?= | last post by:
Hello! I've been professionally working on java projects for several years, but have done extremely little C/C++ coding and just a few little things in VB.Net. Right now I'm trying to write a...
0
by: BarryM | last post by:
I was told that this piece coding to find the es_password state in c# would work but an error message saying hWnd does not exist in the current context internal static class UnsafeNativeMethods...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.