Solved

Window events

Posted on 2002-03-31
8
161 Views
Last Modified: 2010-05-02
I have a window which is created runtime from within a form. That window is not an MDIChild but a child window to the form. The only thing I know about the window is its handle( i know that is all would need ). Having said that, how would I capture mouse events or any event in that window.

A code snippet and a little explanation will be of great help.

Thanks
0
Comment
Question by:maggari
  • 5
  • 2
8 Comments
 
LVL 1

Expert Comment

by:COAtheGREAT
ID: 6909098
Is this window vb Form or some other program ?
0
 

Author Comment

by:maggari
ID: 6909459
Its created runtime from a VB form. Its actually a VB window. I don't know if its a form or not. What if its a form?
0
 
LVL 1

Expert Comment

by:COAtheGREAT
ID: 6909864
You can create custom Events like any other class and fire them when you need. On the form that creates your child form dimension the chield form with events.

Dim WithEvents MyForm as vbForm 'this enables you to catch her events

Private Sub MyForm_SomethingHapened()

end sub

0
 

Author Comment

by:maggari
ID: 6912862
Its not a form. Its a window created by one of the Win32 API functions. So, if anyone can tell me how to catch the events from such a window, that will help.
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 

Author Comment

by:maggari
ID: 6913064
Its not a form. Its a window created by one of the Win32 API functions. So, if anyone can tell me how to catch the events from such a window, that will help.
0
 

Author Comment

by:maggari
ID: 6913305
Its not a form. Its a window created by one of the Win32 API functions. So, if anyone can tell me how to catch the events from such a window, that will help.
0
 

Author Comment

by:maggari
ID: 6913415
Its not a form. Its a window created by one of the Win32 API functions. So, if anyone can tell me how to catch the events from such a window, that will help.
0
 
LVL 49

Accepted Solution

by:
DanRollins earned 50 total points
ID: 7638002
maggari, an EE Moderator will delete this for you.
Moderator, my recommended disposition is:

    DELETE this question.

DanRollins -- EE database cleanup volunteer
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now