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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: RMS001
  • Content: Threads
  • Order by date
  1. RMS001

    Does CopyIcon need to Destroy the Handle

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

    Animated GIF from Resource File to Disk File?

    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() =...
  3. RMS001

    App Loses Focus (Timer vs SubClass)

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

    Get Installed Programs List

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

    GDI+ Finding Fourth Rotation-Matrix-Point

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

    SetBkColor (Or: How Do I Create a Coloured Bitmap DC)

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

    Resampling Bitmaps with Alpha

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

    Finding the GIF transparency colour through code

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

    Text To Path

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

    Clipping Area of a Window

    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.)...
  11. RMS001

    Antialiasing Text

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

    Modify Printer Settings with DocumentProperties?

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

    Printing Picture - Changing Printer Properties

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

    strongm Re: Cards.dll and Win98

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

    Cards.dll and Windows 98

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

    CARDS.DLL or CARDS32.DLL?

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

    Scrollbar does not work like VB6?!?!

    --------------------------------------------------------- VB6 VScroll1 (properties): Max = 100 Min = 0 (default) Height = 2160 (twips - allows one pixel movement per value change) LargeChange = 10 (default) SmallChange = 1 (default) Value = 0 (default) Form1 (code): Private Sub...
  18. RMS001

    Hypetia (Programmer) - Re: Code Library

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

    Setting Minimum Size When Resizing a Window

    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?
  20. RMS001

    Create a Keyboard Hook

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

Part and Inventory Search

Back
Top