Hi - It's been a while since I visited. The best VB6 help was always here.
Is there a reference created, or simply a long variable assigned a value, when using CopyIcon?
Private Sub Form_Load()
hIcon = CopyIcon(Image1.Picture.Handle)
End Sub
Private Sub Form_Paint()
DrawIconEx...
Stored the data from an animated GIF to a resource (.rc) file. The stored data in the resource matches a dump of the original file in a hex editor. When getting the data from the resource I am unable to write it to disk and re-create the file.
Dim C() As Byte
C() =...
Hi - I searched the threads but I couldn't find an answer.
Obviously using subclassing is the way to tell if your VB app loses focus to another app.
If this was to be done using SetTimer/KillTimer, what would you suggest as a test in the timer loop.
GetForegroundWindow()? or something else...
Hi - Is there an API to get the list of programs in the Add/Remove Programs list.
(Or any other way to determine if a program has been installed under Xp and Vista?).
HKEY_CURRENT_USER\Software\? (Some programs add reg entries when just being run after being unzipped (not installed) - e.g...
Hi
Has anyone had to find the fourth point in a rotation matrix given: x1 and y1, x2 and y2, x3 and y3. GDI+ provides DrawImagePoints which is passed an array of three points. Does anyone know the formula to find the fourth point's x and y at any angle in the rotation?
Thanks - Ron
Hi - Perhaps this has been answered before, but I couldn't find a solution in a thread search...
I am trying to create a bitmap in memory to blit another bitmap onto.
The memory bitmap needs to have its back colour set to match a transparent colour in the source image.
Does anyone know how to...
Hi
vbAccelerator has code to resample alpha bitmaps using a proportional scheme that preserves aspect ratio.
http://www.vbaccelerator.com/home/VB/Code/vbMedia/DIB_Sections/Alpha_DIBSection/article.asp
I have pared this down to the resampling part only.
In the class 'cAlphaDibSection', the...
Hi - Using good old VB6, is it possible to read in a GIF file and decode the header to find out the transparency value. I would then be able to pop it onto a form or user control and set the transparent value of the parent to allow the GIF edges to show through...
Hi - I am trying to create a program using CreateFontIndirect that will map a short string (10 chrs max.) to either a bezier curve (PolyBezier API) or a set of control points along an arc or even a sloping line. I would like to rotate or even resize an individulal character at it's control...
I would like to be able to do a refresh on a form without redrawing the entire form area. The reason is to be able to move an object within a picture box and not have so much flashing. (Refreshing just the picture box does not work. The whole form must be refreshed or the object leaves trails.)...
Hi - I have a project that requires the text in a textbox or label to be antialiased. Last week I found an ocx that did just that. I did not bookmark the webpage and cannot find it again. (Searched through my History; - Searched through google for any keyword that is related; - Searched through...
Hi
There are examples of this in MSDN written in C, by getting, then modifying and then rewriting the DEVMODE structure.
Can anyone help me translate it to Visual Basic?
Appleman has an example which I can follow until he calls a routine in his APIGID32.DLL for memory manipulation and loses me...
Hi
I searched the previous posts and while I found a few interesting things, I didn't find an answer to this:
The picture prints with the same resolution (Normal) no matter which setting I choose in the ShowPrinter/Printer Properties Dialog boxes! (My printer prints at up to 1440 and obviously...
Hi strongm
I think I have corrected my code to match your revision:
rem'd the original LoadLibrary and FreeLibrary Declares,
added the new Library16 ones, and changed the calls to point to the new ones,
but get this error message - "Can't find DLL entry point 35 in kernal32".
This...
I have been given a terrific explanation of how to access the Windows library "cards.dll" by strongm - thread 711-635472
I am not able to run this under Win98. It works great in XP! (After figuring out the bitmap persistance problems).
98 does not recognize calls to the dll ('DLL not...
The only thread that I could find with a reference to these libraries contains expired links.
I have tried to use the Bruce McKinney DLL and info from his web-site... Can't get it to work.
If anyone has made a card game using the MS cards library I would sure like to see how.
Hi Hypetia - I found your code for sub-classing to limit the size of a window fantastic!
In your message you mentioned that you found the solution in your code library. Is this a common access repository or just your personal stuff. I sure would like to see some of it. - Ron
Hypetia...
I know you can 'read' the minimum window size when dragging the bottom right corner of a window:
GetSystemMetrics(SM_CXMINTRACK).
Does anyone know how to set the SM_CXMINTRACK value to something other than the default?
Hi
There must be a way to intercept the Virtual keys
before the system sends them to your control or form.
'KeyPreview = True' does not go far enough.
You could put GetAsyncKeyState in a loop, but isn't
that a step backwards?
Windows is so layered compared to DOS C++ and Assembler,
I am...
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.