VC4 Buttons

VC4 Buttons

Post by Lord Mag » Fri, 21 Feb 1997 04:00:00



This is probably a simple question, but how do you display a button on a
DirectX surface? (Not using MFC)

Thanks -
     James

 
 
 

VC4 Buttons

Post by Martijn Boekhors » Sun, 23 Feb 1997 04:00:00




Quote:> This is probably a simple question, but how do you display a button on a
> DirectX surface? (Not using MFC)

Easy, use GetDC() and then call DrawFrameControl(), something like the
following :
DrawFrameControl(hDC, pRect, DFC_BUTTON, DFCS_BUTTONPUSH) where the hDC is
the DC you received using GetDC() and pRect points to the rectangle where
the button should be drawn.

Hope this helps.

Martijn Boekhorst


 
 
 

1. Thanks to all! + VC4

Hello all,

THanks to all who gave me advice on the MSDN L2. I did order it, and it
came yesterday evening Fed Ex.

There is more information than I know what to do with right now. It
seems like it truly is a wise investment.

Once again, thanks to all.

Oh, by the way, I know someone said that VC++ 4.0 will not work under
Win 3.11, but according to MS, it will as along as you have the Win32s
dll's on your system.... any truth to this? Thanks!

TIA

-BD

2. How Much Will The 19100 Problem Cost?

3. VC4.0 DX5.0 ACKNEX 3D

4. Why people accept bad computers

5. ASM with win32 (VC4), and NT

6. CORBA Jobs in FRANCE

7. VC4.0 and directX5

8. Delete Windows update and set up files

9. 4 Button joysticks for the PC

10. Button Mashing?

11. Programming 6-8 button gamepads

12. Multi Button Joysticks

13. DIBs and Buttons ?