VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



TranslateColor

by stephane swertvaegher (20 Submissions)
Category: Windows API Call/Explanation
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (4 Votes)

Windows works with normal colors and system colors. Visual basic can not handle the system colors and work with them as normal RGB colors. Here's an interesting API I found that translates System Colors to 'normal' colors. I made a little prog arround this to show how it is done. WARNING ! I work with win98 so I don't know if it works with WIN95. If it doesn't, could you please tell me. My adress is: [email protected] The .dll that contains this API is olepro32.dll. Download the zip and find out...

Inputs
System Color
Code Returns
Normal RGB color
API Declarations
Private Declare Function TranslateColor Lib "olepro32.dll" Alias "OleTranslateColor" (ByVal clr As OLE_COLOR, ByVal palet As Long, Col As Long) As Long

Rate TranslateColor

Download TranslateColor

Download TranslateColor (2 KB)

TranslateColor Comments

No comments have been posted about TranslateColor. Why not be the first to post a comment about TranslateColor.

Post your comment

Subject:
Message:
0/1000 characters