How to make light bulb effect on GUI Buttons

This is a discussion on How to make light bulb effect on GUI Buttons within the Windows Programming forums, part of the Platform Specific Boards category; Hi, I am programming in VC++. I want to know how can we make Button object such that when mouse ...

  1. #1
    porecha_jp
    Guest

    Question How to make light bulb effect on GUI Buttons

    Hi,

    I am programming in VC++. I want to know how can we make Button object such that when mouse curosor comes on it lighten up.

    Some thing like used in some educational softwares that appearance of buttons would be such that some light bulbs is made on beneath it.

    Please reply me....


    Jatan

    porecha_jp@hotmail.com

  2. #2
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    A button is a window as sure as your main window is a window and as such recieves messages just like any other window. If you want something to happen when the mouse cursor goes over the button then in its window procedure you have to handle the WM_MOUSEMOVE message.
    Last edited by Stoned_Coder; 02-09-2002 at 05:47 PM.
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Win32 Common Controls in C++, how do i make and use them?
    By C+noob in forum Windows Programming
    Replies: 6
    Last Post: 01-09-2006, 10:53 AM
  2. geometry won't display!?
    By psychopath in forum Game Programming
    Replies: 17
    Last Post: 09-21-2004, 10:10 AM
  3. How do I make my buttons look like the currnet Theme?
    By kinghajj in forum Windows Programming
    Replies: 1
    Last Post: 11-11-2003, 02:12 PM
  4. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 05:06 PM

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