Click here to Skip to main content
15,887,350 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to produce a +5V TTL signal on COM port? Pin
pavanbabut29-Jan-07 8:51
pavanbabut29-Jan-07 8:51 
GeneralRe: How to produce a +5V TTL signal on COM port? Pin
jeron129-Jan-07 9:34
jeron129-Jan-07 9:34 
GeneralRe: How to produce a +5V TTL signal on COM port? Pin
malaugh29-Jan-07 10:22
malaugh29-Jan-07 10:22 
GeneralRe: How to produce a +5V TTL signal on COM port? Pin
pavanbabut29-Jan-07 13:13
pavanbabut29-Jan-07 13:13 
GeneralRe: How to produce a +5V TTL signal on COM port? Pin
jeron130-Jan-07 5:38
jeron130-Jan-07 5:38 
GeneralRe: How to produce a +5V TTL signal on COM port? Pin
pavanbabut30-Jan-07 6:05
pavanbabut30-Jan-07 6:05 
GeneralRe: How to produce a +5V TTL signal on COM port? Pin
jeron130-Jan-07 6:32
jeron130-Jan-07 6:32 
QuestionPatBlt, PATINVER and HOT/HOVER display Pin
Luther Baker29-Jan-07 7:22
Luther Baker29-Jan-07 7:22 
I write controls and GUIs and PatBlt and PATINVERT has proved very fast and valuable when it comes to 'selecting' or hilighting something as the mouse buzzes by.

In many MS products - when a mouse buzzes by the toolbar for instance, the 'hot' or highlight approach does something like 'highlight the background of the icon in blue with a blue border' but generally leaves the icon alone.

I'm sure this could be implemented long hand using double buffering or simply repainting BG and then the ICON to the screen - but is there a tricky or clever way to do this - like using a MASK or something that would allow me to simply alter the background back and forth - and not need to redraw the icon (unless of course, the icon also changes to imply 'hot' or hover.

Another situation might be a customer list box of some sort ... when the user highlights an item, the BG of that item changes - but the TEXT and possible ICON do not. Again, I know this can be implemented by painting everything for that item ... and made flicker free by using double buffereing ... but I'd like to investigate a more 'clever' approach - like creating a transparency by anding and oring bits and masks in just the right order.

ICON Text A
ICON Text B
|---------------------|
| ICON Text C |
|---------------------|
ICON Text D

and that highlight could quickly follow the mouse.

The technique should be valid over anything ... just as PatBlt(...PATINVERT) works so well.

Unfortunately, PATINVERT inverts everything ... I need to avoid the INNERDS.

Maybe start by leaving certain COLORS alone? on a PATINVERT type operation ... ?

Would it be worthwhile to look into HRGNs?

Many thanks in advance.

-Luther



QuestionGlobal value... [modified] Pin
Shah Satish29-Jan-07 7:08
Shah Satish29-Jan-07 7:08 
AnswerRe: Global value... Pin
Michael Dunn29-Jan-07 7:12
sitebuilderMichael Dunn29-Jan-07 7:12 
QuestionRe: Global value... Pin
David Crow29-Jan-07 7:13
David Crow29-Jan-07 7:13 
AnswerRe: Global value... Pin
Laxman Auti30-Jan-07 2:56
Laxman Auti30-Jan-07 2:56 
GeneralRe: Global value... Pin
Shah Satish30-Jan-07 2:58
Shah Satish30-Jan-07 2:58 
GeneralRe: Global value... Pin
Laxman Auti30-Jan-07 3:28
Laxman Auti30-Jan-07 3:28 
QuestionVisual Studio 2005 Express Edition WIN32 App Template Pin
cgb14329-Jan-07 6:53
cgb14329-Jan-07 6:53 
AnswerRe: Visual Studio 2005 Express Edition WIN32 App Template Pin
Mark Salsbery29-Jan-07 7:06
Mark Salsbery29-Jan-07 7:06 
GeneralRe: Visual Studio 2005 Express Edition WIN32 App Template Pin
cgb14329-Jan-07 7:28
cgb14329-Jan-07 7:28 
QuestionRegarding Microsoft Excel Pin
Member 377268029-Jan-07 5:39
Member 377268029-Jan-07 5:39 
AnswerRe: Regarding Microsoft Excel Pin
Wes Aday29-Jan-07 8:01
professionalWes Aday29-Jan-07 8:01 
AnswerRe: Regarding Microsoft Excel Pin
Hamid_RT29-Jan-07 18:28
Hamid_RT29-Jan-07 18:28 
Questionengine Pin
reyyy29-Jan-07 4:58
reyyy29-Jan-07 4:58 
AnswerRe: engine Pin
David Crow29-Jan-07 5:32
David Crow29-Jan-07 5:32 
GeneralRe: engine Pin
reyyy29-Jan-07 5:35
reyyy29-Jan-07 5:35 
GeneralRe: engine Pin
James R. Twine29-Jan-07 7:17
James R. Twine29-Jan-07 7:17 
QuestionHow to Monitor the Exchange Data Between Driver and Software Application Pin
Khoramdin29-Jan-07 3:41
Khoramdin29-Jan-07 3:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.