adding bitmap to button

Discussion in 'C++' started by Monty R. Caywood, Apr 20, 2004.

  1. Is there a way to add a specific bitmap on a button?
     
    Monty R. Caywood, Apr 20, 2004
    #1
    1. Advertising

  2. Monty R. Caywood wrote:
    > Is there a way to add a specific bitmap on a button?


    There are no buttons in c++, so
    Try microsoft.public.vc.mfc (assumes mfc)
    Search codeproject.com (assumes mfc or...)
    See SetBitmap and/or the override DrawItem (assumes mfc)

    Best, Dan.

    --
    http://lakeweb.net
    http://ReserveAnalyst.com
    No EXTRA stuff for email.
     
    Dan Bloomquist, Apr 20, 2004
    #2
    1. Advertising

  3. Monty R. Caywood

    Julie Guest

    "Monty R. Caywood" wrote:
    >
    > Is there a way to add a specific bitmap on a button?


    class Bitmap
    {
    };

    class Button
    {
    public:
    void SetBitmap(const Bitmap & bm)
    {
    /* ... */
    }
    };

    int main(/* ... */)
    {
    Bitmap bm;
    Button bt;
    bt.SetBitmap(bm);
    return 0;
    }
     
    Julie, Apr 20, 2004
    #3
  4. Julie wrote:
    > "Monty R. Caywood" wrote:
    >
    >>Is there a way to add a specific bitmap on a button?

    >
    >
    > class Bitmap
    > {
    > };
    >
    > class Button
    > {
    > public:
    > void SetBitmap(const Bitmap & bm)
    > {
    > /* ... */
    > }
    > };
    >
    > int main(/* ... */)
    > {
    > Bitmap bm;
    > Button bt;
    > bt.SetBitmap(bm);
    > return 0;
    > }


    Do ya think if the op where make'n his own button and bitmap classes he
    would need to ask the question? :)

    And next you'll be going bm.Load( RESOURCE ) and on and on...

    Better he look at examples relevant to his OS and development system.

    Best, Dan.

    --
    http://lakeweb.net
    http://ReserveAnalyst.com
    No EXTRA stuff for email.
     
    Dan Bloomquist, Apr 20, 2004
    #4
  5. Monty R. Caywood

    Julie Guest

    Dan Bloomquist wrote:
    [snip]
    > Do ya think if the op where make'n his own button and bitmap classes he
    > would need to ask the question? :)
    >
    > And next you'll be going bm.Load( RESOURCE ) and on and on...
    >
    > Better he look at examples relevant to his OS and development system.


    Danny boy, it was a *joke*.
     
    Julie, Apr 20, 2004
    #5
  6. Julie wrote:
    > Dan Bloomquist wrote:
    > [snip]
    >
    >>Do ya think if the op where make'n his own button and bitmap classes he
    >>would need to ask the question? :)
    >>
    >>And next you'll be going bm.Load( RESOURCE ) and on and on...
    >>
    >>Better he look at examples relevant to his OS and development system.

    >
    >
    > Danny boy, it was a *joke*.


    Golly Julie,

    Put a huge _red_ smiley here:
    **
    * *
    * * * *
    * * *
    **

    Best, Dan.

    --
    http://lakeweb.net
    http://ReserveAnalyst.com
    No EXTRA stuff for email.
     
    Dan Bloomquist, Apr 20, 2004
    #6
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Gandalf

    Masked bitmap from bitmap

    Gandalf, Jan 29, 2004, in forum: Python
    Replies:
    0
    Views:
    594
    Gandalf
    Jan 29, 2004
  2. pythonprogrammer
    Replies:
    1
    Views:
    481
    Srini
    Sep 5, 2005
  3. Ivan P

    setting bitmap on button

    Ivan P, Jun 24, 2006, in forum: C++
    Replies:
    2
    Views:
    501
    rossum
    Jun 24, 2006
  4. xqggz
    Replies:
    1
    Views:
    429
    Victor Bazarov
    Jun 19, 2007
  5. David Thielen

    all bitmap button in grid?

    David Thielen, Oct 21, 2006, in forum: ASP .Net Web Controls
    Replies:
    3
    Views:
    120
    David Thielen
    Oct 25, 2006
Loading...

Share This Page