Problem with toggle button |
Post Reply |
Author | |
Ayub
Newbie Joined: 08 January 2008 Location: India Status: Offline Points: 6 |
Post Options
Thanks(0)
Posted: 03 May 2010 at 6:16am |
Hi, I created a toggle button using windows CreateWindow method. HBITMAP icon; toggleBG = CreateWindow( "BUTTON", NULL, WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_BITMAP | BS_AUTOCHECKBOX | BS_PUSHLIKE, 10, 10, 100, 30, this->GetSafeHwnd(), NULL, AfxGetApp()->m_hInstance, NULL ); ::SendMessage( toggleBG, BM_SETIMAGE, (WPARAM)IMAGE_BITMAP, (LPARAM)icon); When I support skin to my application then button does not look like button and do not shows toggle effect. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |