How can i make my dialog box so that you can move it no matter where you click on the window
I also want to no how i can make a button have a bitmap on it
How can i make my dialog box so that you can move it no matter where you click on the window
I also want to no how i can make a button have a bitmap on it
http://msdn.microsoft.com/library/de....SetBitmap.asp
Or if you're using MFC you can use the CBitmapButton class.
i went to the link and read the stuff but i didnt understand any of it.
could you give me an example
Sure.
Replace MAKEINTRESOURCE(OBM_CHECK)) with the resource ID of the desired bitmap.Code:CButton myButton; // Create a bitmap button. myButton.Create(_T("My button"), WS_CHILD|WS_VISIBLE|BS_BITMAP, CRect(10,10,60,50), pParentWnd, 1); // Set the bitmap of the button to be the system check mark bitmap. myButton.SetBitmap( ::LoadBitmap(NULL, MAKEINTRESOURCE(OBM_CHECK)) );
how to i use the CBitmapButton class to create ??
any example u can gif mi ?
Just use CButton with the flag BS_BITMAP.
CBitmapButton is more complicated and allows for ledd functionality, plus it's MFC specific. Use the code example I gave you to place a CButton with a Bitmap on it.
If you really want to use CBitmapButton, refer to this MSDN article: http://msdn.microsoft.com/library/de...tmapButton.asp