Loads the bitmaps for the button given U - up position D - down position M - lit (mouse is over it) position X - disabled
| 405 | // M - lit (mouse is over it) position |
| 406 | // X - disabled |
| 407 | bool CBitmapButtonEx::Load(UINT nID, CWnd *parent) { |
| 408 | CString res_name, title; |
| 409 | |
| 410 | if (parent == NULL) |
| 411 | return FALSE; |
| 412 | |
| 413 | parent->GetDlgItemText(nID, title); |
| 414 | |
| 415 | OutputDebugString("title ="); |
| 416 | OutputDebugString(title); |
| 417 | OutputDebugString("\n"); |
| 418 | |
| 419 | res_name.Format("%s%s", title, "U"); |
| 420 | GetBitmapAndPalette(res_name, &m_UpBitmap, NULL); |
| 421 | res_name.Format("%s%s", title, "D"); |
| 422 | GetBitmapAndPalette(res_name, &m_DownBitmap, NULL); |
| 423 | res_name.Format("%s%s", title, "M"); |
| 424 | GetBitmapAndPalette(res_name, &m_MouseBitmap, NULL); |
| 425 | res_name.Format("%s%s", title, "X"); |
| 426 | GetBitmapAndPalette(res_name, &m_DisabledBitmap, NULL); |
| 427 | |
| 428 | return (TRUE); |
| 429 | } |
| 430 | |
| 431 | // Loads the animation bitmaps for the button given |
| 432 | // Format: nameX where X is the frame # |
nothing calls this directly
no test coverage detected