Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by mbu

  1. mbu

    MenuItem Click Event with API

    I forget to mention that I am writing the code in Visual Basic 6.0. I think the code you gave me to try is not in VB and it is not working. Mark
  2. mbu

    MenuItem Click Event with API

    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...
  3. mbu

    MenuItem Click Event with API

    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...
  4. mbu

    MenuItem Click Event with API

    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...
  5. mbu

    Detecting whether mouse button is pressed

    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...
  6. mbu

    SendMessage from EnumChildWindowProc is not responding.

    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.
  7. mbu

    SendMessage from EnumChildWindowProc is not responding.

    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().
  8. mbu

    Faking mouse clicks from one app to another app

    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 =...
  9. mbu

    SendMessage from EnumChildWindowProc is not responding.

    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...
  10. mbu

    DBGrid Event on selecting a row.

    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...
  11. mbu

    VB6 Date using Dynamic SQL includes UNWANTED Time!

    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...
  12. mbu

    HOW TO DISPLAY SEARCH RESULTS OF A DATAGRID

    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...
  13. mbu

    VB6 Date using Dynamic SQL includes UNWANTED Time!

    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...

Part and Inventory Search

Back
Top