Question on color code

172 views
Skip to first unread message

A mar

unread,
Jun 13, 2022, 2:57:19 PM6/13/22
to IADS
Hello I'm brand new to IADS ..... I know we are using VS with C++ or C#

1. what color code I can use ? or it can be normal HEX color code ? any example of color code would be appreciate

2. can we use css for ActiveX?

right now I'm doing research on this and would love to learn more 



Rasmussen, Brenda

unread,
Jun 14, 2022, 11:18:13 AM6/14/22
to IADS
Hello,


If you are creating an ActiveX control and have color properties for the control, the 'type' for the color is OLE_COLOR.
OLE_COLOR is defined as a DWORD which is an unsigned long.

Values range from 0 = black (Hex = 0x0) to 16777215 = white (hex = 0xFFFFFF).

There is a function called RGB(r,g,b) that will convert the red, green and blue components to a DWORD.

Values for r, g, b range from 0 - 255. If all are 0, you'll get 0 = black. If all are 255, you'll get 16777215 = white.

I hope this answers your question.


Brenda


Brenda Rasmussen
Software Dev Eng, Prin, IADS

Defense Solutions Division
Curtiss-Wright
190 Sierra Ct, Ste A-3, Palmdale, CA 93550
T: +1 661-277-5451
brasm...@curtisswright.com


________________________________
From: ia...@googlegroups.com <ia...@googlegroups.com> on behalf of A mar <alisa.ma...@gmail.com>
Sent: Monday, June 13, 2022 10:30 AM
To: IADS
Subject: [IADS] Question on color code [EXTERNAL]

WARNING: This message came from an external source. Please exercise caution and proper judgment when opening any attachments, clicking links or responding to this message.
________________________________
--
You received this message because you are subscribed to the Google Groups "IADS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iads+uns...@googlegroups.com<mailto:iads+uns...@googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/iads/7d3b0af7-122d-409a-b164-563ea058eeb3n%40googlegroups.com<https://urldefense.com/v3/__https://groups.google.com/d/msgid/iads/7d3b0af7-122d-409a-b164-563ea058eeb3n*40googlegroups.com?utm_medium=email&utm_source=footer__;JQ!!NVq9dfhzMyHqTw!iUZFt3blrFesF0rg7SuhaQiysnJVX7hB2_Z3vre_STJVoy3_Czc8b_xRzvoOkcRC8qOrsj6wD77hKbklw2EV6Qi1-MPbQc9M$>.

----------------------------------------------------------------------
This e-mail and any files transmitted with it are proprietary and intended solely for the use of the individual or entity to whom they are addressed. If you have reason to believe that you have received this e-mail in error, please notify the sender and destroy this e-mail and any attached files. Please note that any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the Curtiss-Wright Corporation or any of its subsidiaries. Documents attached hereto may contain technology subject to government export regulations. Recipient is solely responsible for ensuring that any re-export, transfer or disclosure of this information is in accordance with applicable government export regulations. The recipient should check this e-mail and any attachments for the presence of viruses. Curtiss-Wright Corporation and its subsidiaries accept no liability for any damage caused by any virus transmitted by this e-mail.
Reply all
Reply to author
Forward
0 new messages