Can anyone explain this one?

This is a discussion on Can anyone explain this one? within the Tech Board forums, part of the Community Boards category; On Vista, it creates a solid translucent blue rectangle. If I try to make a straight line, I get no ...

  1. #16
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,596
    On Vista, it creates a solid translucent blue rectangle. If I try to make a straight line, I get no line or dots at all.
    I'm not sure what Aero does but it's probably alpha blending which would follow a different paradigm. Two alphas overlayed should result in transparent lines. It could be that when the length or width of the selection is zero the code does not draw anything. This does make sense since no selection should equal no selection rect.

    hat are you saying? I can clearly see two dots.
    This could happen depending on how the code deals with this condition. It may begin the line slightly above the old line which could result in the pattern you are seeing. Code it up in a Win32 app and play with it to see what happens. I'm sure you can duplicate the behavior.

    On Windows XP I do get two dots. But it looks like an overlayed XOR line to me.
    Last edited by VirtualAce; 09-06-2009 at 11:40 AM.

  2. #17
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,545
    Quote Originally Posted by cpjust View Post
    On Vista, it creates a solid translucent blue rectangle. If I try to make a straight line, I get no line or dots at all.
    That is pretty much what I get, as well.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 6
    Last Post: 08-23-2008, 01:16 PM
  2. Please Explain me few terms that i have listed in here.
    By chottachatri in forum C++ Programming
    Replies: 3
    Last Post: 02-26-2008, 07:20 AM
  3. Can someone explain to me what this code means
    By Shadow12345 in forum C++ Programming
    Replies: 3
    Last Post: 12-22-2002, 11:36 AM
  4. Replies: 4
    Last Post: 11-19-2002, 08:18 PM
  5. Can someone explain "extern" to me?
    By valar_king in forum C++ Programming
    Replies: 3
    Last Post: 09-16-2001, 12:22 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21