Thank you for your kind reply!!!
The program that I am trying to control has the handel hMainProg. The main Menu has hMenu handle and the Menu ID# 0 is the "File" menu with the handle hFile = GetSubMenu(hMenu, 0). MenuItem ID# 2 in the "File" which has the string "&Close". So, when I want to...
So far I can find the exact MenuItem ("&Close") from the "File" menu using the GetMenu, GetSubMenu, GetMenuItemCount and loop through the content of a "File" SubMenu. Now that I found the "&Close" MenuItem (confirmes by the GetMenuString, I want to "simulate" a "Click."
Since the MenuItem has...
So far I can find the exact MenuItem ("&Close") from the "File" menu using the GetMenu, GetSubMenu, GetMenuItemCount and loop through the content of a "File" SubMenu. Now that I found the "&Close" MenuItem (confirmes by the GetMenuString, I want to "simulate" a "Click."
Since the MenuItem has...
Hi AirCon (as in Con Air??? :) )
Can you show a basic call of this SetWindowsHookEx in VB? The search on the MSDN is not too clear. I have started API programing about 2 months ago and I am familiar with the basic, i.e., EnumWindows, SendMessage, etc.
Can you show how to use the...
Private Declare Function SendMessage Lib "user32" _
Alias "SendMessageA" _
(ByVal hwnd As Long, _
ByVal wMsg As Long, _
ByVal wParam As Long, _
lParam As Any) As Long
In the module where the "EnumChildProc" is.
The SendMessage() command line is place after the hChild (the handle of child window which happens to be a textbox)is determined.
Something is very strange. This is the first time I am programing in API and I can't see why a callback function cannot respond a SendMessage().
How about BM_CLICK? I have a similar issue when I want to simulate the "click event" on a "OK" button (of course it is a child). So I did this
lResult0 = SendMessage(hOkay, BM_CLICK, ByVal 0&, ByVal 0&)
lResult1 = SendMessage(hOkay, WM_LBUTTONDOWN, ByVal 0&, ByVal 0&)
lResult2 =...
Hello O'Great Ones,
I have problem with SendMessage() from inside the EnumChildWindowsProc.
*From my Form1 Code I called (I have hParent handle already)
Call EnumChildWindows(hParent, AddressOf EnumChildProc, &H0)
And in my EnumChildProc (in the module) I have
lResult = SendMessage(hChild...
My form contains a DBGrid that is link-ed (or Bound-ed) to a DAO Control (Data2). Data2 is a result of a SQL string and the result varies from 0 to n-Rows.
Question-1: What event does it trigger when a single row is selected on the DBGrid?
Question-2: Any idea or a lead on how to extract...
Thank You John!
Now I added a MonthView Control mvwStartDate (eventually there will be 2 controls) but I do not know the Syntax for using the mvwStartDate.Value in a Dynamic SQL
StartDate = mvwStartDate.Value
Data2SQL = "SELECT tblOpticsData.LensCut, tblOpticsData.Machine...
Hi Hiccup, by reading your question you might be new to VB Database as I am. I assume that because what you want is a “textbook problem”. I am programming the front-end forms in VB6 for about 1.5 months or so with no prior experience in VB or Access! If you are patient and persistent you will...
Hi everyone, this is my first question.
My VB6 form contains 2 ComboBox and they are filled using .Additem after the Data control is populated through a Dynamic SQL.
My Access2000 tabel (tblOpticsData) have Date field formated as Short Date for the Data Type Date/Time. The table also contains...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.