Search:
Type: Posts; User: Megatron
Search:
Search took 0.18 seconds.
-
Ha, didn't know people still remembered me around here
Well, I'd like to tell you guys something extravagant, like I'm a motorcycle daredevil, but the truth is I'm still the same guy. Just a bit...
-
I've ran some tests, and looks like this functionality of scrolling to the top is built into the ListView control, itself, and not linked with the scrollbar.
An API-message spy will show you a...
-
Bear in mind, the function also implies that you are creating the array with SafeArrayCreate(). Is this the case with you?
-
You need to elaborate further.
Is it just an executable file? If so ShellExecute() should work.
-
Well remember that the command prompt is "all one window" (I.e. the main window is not separated from the text entry part, like Notepad is) so sending WM_SETTEXT will only change the window's...
-
Rob: Since we're sending WM_CHAR directly, it will work with SendMessage too. If however, we tried to send WM_KEYDOWN and WM_KEYUP, it would fail, since it bypasses the message queue, and thus, the...
-
You shouldn't have to bring pipes into it
The following works for me
Private Declare Function PostMessage Lib "user32.dll" Alias "PostMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal...
-
What leads you to believe it isn't WM_COMMAND?
-
In terms of API, the StretchBlt function can be used to redraw an image with different dimensions.
That's the basis of a ZoomIn program.
-
Chris's example looks OK to me; Except use PostMessage instead of SendMessage
Private Const WM_LBUTTONDOWN As Long = &H201
Private Const WM_LBUTTONUP As Long = &H202
Private Declare Function...
-
If the window is already open, and you want to send text to it, treat it like any other standard window. I believe the classname is "tty" so pass that through FindWindow and then use PostMessage to...
-
Does 61587 take into account all 3?
I haven't tested it, but the following should do the trick (modification of subclassed window's winproc)
Private Const SC_CLOSE As Long = &HF060&
Private...
-
There is no API for it.
Passing a startup switch looks like the easiest method
-
How does the window pop up? Does it have focus? And do you want to button to be pressed automatically? I.e. In Dreamvb's code you have to initiate it by clicking a button on your window first....
-
Have you tried sending WM_KEYDOWN and WM_KEYUP messages? (Using PostMessage)
-
There's also the keybd_event() function.
-
Use FindWindowEx to get the handle of the top-level window, and children (pass the parent as the first argument to get the children).
To click the button, use SendMessage to send the BM_CLICK...
-
Pass the instance of your "main" form through a (modified) constructor of your "alert" Form.
-
You could set up a WH_SHELL hook, and scan the title of a window when it's created. See this link for setting up the hook.
You'll need to modify the ShellProc callback function to look something...
-
If you're using C++, it's easier just to run it in a separate thread.
-
You shouldn't need API's for this, as it can be done directly from VB.
Printer.Orientation = vbPRORLandscape
-
I'm with SLH on this one: First figure out what kind of control it is: RichEdit or Edit? (or something else). In any case, find out the class name, as well as the window handle. In your application,...
-
When does this happen? I.e. Which message is sent just before this dialog pops up?
Are you sending the WM_CAP_DLG_VIDEOSOURCE message?
-
Just to clarify:
The idea behind installing hooks is that the callback must be mapped in the processes own address space. This is achieved by storing the callback in a DLL module. Since VB can...
-
What's your question, exactly?
wsprintf() is a C function that formats a string with specific values.
In VB we do:
myStr = "My name is " & sName & ". I live in " & sCity
-
From the IDE:
File > New > File, and select either Icon or Curosr.
-
-
Set the fYeild member of the CAPTUREPARMS structure to 1. This will run the capture window in separate thread.
-
You need to be a little more specific. What do you need to change?
The background colour can be changed via the BackColor property.
To get rid of the title bar, set the Form's ControlBox to...
-
Add the following to the top of your class
Imports System.Data.SqlClient
Alternatively, you can reference it in the following manner
Dim MyConnection As System.Data.SqlClient.SqlConnection
-
So which part are you stuck on? Transferring the data? Or determining the highest score?
Transferring the data is just setting a property
Dim frm As New frmHighScores
frm.MyLabel.Text =...
-
Bear in mind that the core Win32 API is antique, itself (pre-1999)
That book will help you get a general understand and feel for the main components of the API
Once you understand the guts, the...
-
Try:
Option Explicit
Private Declare Function EnableWindow Lib "user32" (ByVal hwnd As Long, ByVal fEnable As Long) As Long
Private Declare Function FindWindowEx Lib "user32" Alias...
-
There are 2 messages you need to look into: WM_CAP_SET_CALLBACK_FRAME and WM_CAP_SET_CALLBACK_VIDEOSTREAM. Both of these set up callback functions just prior to displaying a frame in the preview...
-
Here's a sample using ADO.
So be sure to include a reference to "Microsoft ActiveX Data Objects" under Project > References
Dim cnn As New Connection
Dim rst As New Recordset
'Replace the...
-
Here is that article
"The key conceptual difference between an event interface and a callback interface is that an event is designed to be more like an anonymous broadcast, while a callback...
-
First call: AppActivate "Unitited - Notepad"
Then call SendKeys
The other alternative is to use the FindWindow and SendMessage API's.
-
Use file-logging or MsgBox statements to debug your EXE and trace its execution path.
-
An internal method retrieves the application's current directory and stores it in that read-only variable.
-
MSDN Library. In addition to the reference section, they also have an "About..." section for each category of the Win32 API (GDI, Common Controls, IPC, Debug, etc.). Click on these "About" topics for...
|
Click Here to Expand Forum to Full Width
|