Click here to Skip to main content
15,903,856 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: OnInitDialog is not getting called from DoModal in VS2005 Pin
funwithdolphin30-Aug-10 5:24
funwithdolphin30-Aug-10 5:24 
GeneralRe: OnInitDialog is not getting called from DoModal in VS2005 Pin
Eugen Podsypalnikov30-Aug-10 5:29
Eugen Podsypalnikov30-Aug-10 5:29 
GeneralRe: OnInitDialog is not getting called from DoModal in VS2005 Pin
funwithdolphin31-Aug-10 3:51
funwithdolphin31-Aug-10 3:51 
GeneralRe: OnInitDialog is not getting called from DoModal in VS2005 Pin
funwithdolphin31-Aug-10 21:53
funwithdolphin31-Aug-10 21:53 
GeneralRe: OnInitDialog is not getting called from DoModal in VS2005 Pin
funwithdolphin31-Aug-10 23:24
funwithdolphin31-Aug-10 23:24 
QuestionReplace exe in Install shield Pin
raju_shiva30-Aug-10 0:33
raju_shiva30-Aug-10 0:33 
AnswerRe: Replace exe in Install shield Pin
ThatsAlok30-Jun-11 23:59
ThatsAlok30-Jun-11 23:59 
QuestionHow to achieve pushbutton type effect using bitmaps Pin
sayonee29-Aug-10 22:23
sayonee29-Aug-10 22:23 
Hello there I have a issue related to the usage of the bitmap enabled Dialog window.I have created a keyboard type layout and i wish to get the input through keyboard also.When i use the mouse I am able to get the button(s) pressed and also all the buttons are working fine - the other images DEFAULT,SELECTED,DISABLED ..all get loaded and work since I am using the function here m_BtnBtn1Ctrl.LoadBitmaps ,But then any key pressed on keyboard and the corresponding character on the screen isn't able to do the same as I have been able to do it with clicking of the mouse(and using the Loadbitmaps() function ).

I am using these 3 functions to achieve the same action and effect as that using a mouse
LoadBitmap()
SetBitmap()
Invalidate()

I also tried this piece of code
HBITMAP hbm = (HBITMAP)LoadImage(NULL, "\\res\\Selected\\bitmap21.bmp", IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE);


and

bitmap.Attach((HBITMAP)LoadImage(NULL, "\\res\\Selected\\bitmap21.bmp", IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE | LR_CREATEDIBSECTION));


but these don't seem to give the pressed button effect though internally they work.Can some one please help me with this

Thanks and regards Sayonee

====RELATED CODING PART==========
BOOL KeyBoard_press::PreTranslateMessage(MSG* pMsg)
{
// TODO: Add your specialized code here and/or call the base class
CString strTemp;
if (pMsg->message == WM_KEYDOWN)
{
if ( pMsg->wParam == 0x41 || pMsg->wParam == 0x61) //check for both 'a' and 'A'
OnBtnBtn1();
if (pMsg->wParam == VK_RETURN || pMsg->wParam == VK_DELETE ||
pMsg->wParam == VK_ESCAPE || pMsg->wParam == VK_TAB ||
pMsg->wParam == VK_UP || pMsg->wParam == VK_DOWN || GetKeyState (VK_CONTROL))
{
::TranslateMessage (pMsg);
::DispatchMessage (pMsg);
return TRUE; // DO NOT process further
}
}
return CDialog::PreTranslateMessage(pMsg);
}
AnswerRe: How to achieve pushbutton type effect using bitmaps Pin
Sauro Viti30-Aug-10 6:43
professionalSauro Viti30-Aug-10 6:43 
QuestionMultiple includes Pin
Shy Agam29-Aug-10 21:49
Shy Agam29-Aug-10 21:49 
AnswerRe: Multiple includes Pin
Cedric Moonen29-Aug-10 22:38
Cedric Moonen29-Aug-10 22:38 
AnswerRe: Multiple includes Pin
CPallini29-Aug-10 22:46
mveCPallini29-Aug-10 22:46 
GeneralRe: Multiple includes Pin
Shy Agam29-Aug-10 23:06
Shy Agam29-Aug-10 23:06 
GeneralRe: Multiple includes Pin
Cedric Moonen29-Aug-10 23:53
Cedric Moonen29-Aug-10 23:53 
GeneralRe: Multiple includes [modified] Pin
Shy Agam30-Aug-10 0:10
Shy Agam30-Aug-10 0:10 
GeneralRe: Multiple includes Pin
Cedric Moonen30-Aug-10 0:51
Cedric Moonen30-Aug-10 0:51 
GeneralRe: Multiple includes Pin
Richard MacCutchan30-Aug-10 2:39
mveRichard MacCutchan30-Aug-10 2:39 
GeneralRe: Multiple includes Pin
Paul Michalik30-Aug-10 9:42
Paul Michalik30-Aug-10 9:42 
GeneralRe: Multiple includes Pin
Richard MacCutchan30-Aug-10 21:50
mveRichard MacCutchan30-Aug-10 21:50 
GeneralRe: Multiple includes Pin
Paul Michalik30-Aug-10 23:30
Paul Michalik30-Aug-10 23:30 
GeneralRe: Multiple includes Pin
Richard MacCutchan31-Aug-10 0:41
mveRichard MacCutchan31-Aug-10 0:41 
GeneralRe: Multiple includes Pin
Shy Agam30-Aug-10 21:20
Shy Agam30-Aug-10 21:20 
GeneralRe: Multiple includes Pin
Emilio Garavaglia30-Aug-10 20:18
Emilio Garavaglia30-Aug-10 20:18 
AnswerRe: Multiple includes [modified] Pin
Shy Agam30-Aug-10 22:45
Shy Agam30-Aug-10 22:45 
GeneralRe: Multiple includes Pin
Paul Michalik30-Aug-10 23:49
Paul Michalik30-Aug-10 23:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.