Click here to Skip to main content
15,920,031 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Passing object as parameter problem Pin
impeham23-Nov-04 21:26
impeham23-Nov-04 21:26 
GeneralRe: Passing object as parameter problem Pin
toxcct23-Nov-04 22:29
toxcct23-Nov-04 22:29 
GeneralDetermine desktop bits per pixel format. Pin
Nick Z.23-Nov-04 19:10
Nick Z.23-Nov-04 19:10 
GeneralIcons Pin
Flame Gitsnik23-Nov-04 19:07
Flame Gitsnik23-Nov-04 19:07 
GeneralConvert Long To Byte Pin
RYU^^23-Nov-04 19:05
RYU^^23-Nov-04 19:05 
GeneralRe: Convert Long To Byte Pin
geo_m23-Nov-04 23:04
geo_m23-Nov-04 23:04 
GeneralRe: Convert Long To Byte Pin
RYU^^24-Nov-04 13:35
RYU^^24-Nov-04 13:35 
Generalabt Alt+keys Pin
Tripura.K23-Nov-04 18:26
Tripura.K23-Nov-04 18:26 
hello all
what code do i need to write in MFC in order to check if the user has clicked alt key on the key board and how can i implement Alt+F4 fuction when the user clickes alt button on the key board and button(with caption F4) which is on my dialog box which is created in an SDI application
my alt and F4 button on the dialogbox has the following code in the fuction
void MyDialog::OnButtonalt1()
{
flag=1;
if( ( (WM_KEYDOWN||WM_SYSKEYDOWN) && (0x8000 ==(0x8000 & GetKeyState(18)) ) ) )
{
MessageBox("in Alt");

}
/*if( (WM_KEYDOWN && !GetKeyState(18)) && caps)
{
Invalidate();
}
BYTE keyState[256];
GetKeyboardState((LPBYTE)&keyState);
if( (TRUE && !(keyState[115] & 1))||(!FALSE && (keyState[115] & 1)) )
{
// Simulate a key press
keybd_event( 38,0x45,KEYEVENTF_EXTENDEDKEY|0,0);
// Simulate a key release
keybd_event(38,0x45,KEYEVENTF_EXTENDEDKEY|KEYEVENTF_KEYUP,0);
}
*/
}
void MyDialog::OnButtonF4()
{
int i = GetKeyState(115);
if(i)
{
MessageBox("In F4");
}
}


Request to all to continue this
GeneralRe: abt Alt+keys Pin
rabih_kai23-Nov-04 18:45
rabih_kai23-Nov-04 18:45 
GeneralRe: abt Alt+keys Pin
Anonymous23-Nov-04 23:58
Anonymous23-Nov-04 23:58 
Questionhow to check the execution time of any program that is execute Pin
shiva shankar23-Nov-04 17:03
shiva shankar23-Nov-04 17:03 
AnswerRe: how to check the execution time of any program that is execute Pin
shiraztk23-Nov-04 18:08
shiraztk23-Nov-04 18:08 
GeneralRe: how to check the execution time of any program that is execute Pin
shiva shankar24-Nov-04 17:50
shiva shankar24-Nov-04 17:50 
Generalgraphics program help Pin
glowskull0323-Nov-04 15:28
glowskull0323-Nov-04 15:28 
GeneralTooltip on CHeaderCtrl of CListCtrl Pin
Vancouver23-Nov-04 15:08
Vancouver23-Nov-04 15:08 
GeneralInvisiable dialog on the entire screen Pin
Jon823-Nov-04 13:47
Jon823-Nov-04 13:47 
GeneralRe: Invisiable dialog on the entire screen Pin
John R. Shaw23-Nov-04 14:25
John R. Shaw23-Nov-04 14:25 
GeneralRe: Invisiable dialog on the entire screen Pin
Ryan Binns23-Nov-04 17:09
Ryan Binns23-Nov-04 17:09 
Generalascii conversion HELP!!! Pin
Member 153128723-Nov-04 13:38
Member 153128723-Nov-04 13:38 
GeneralRe: ascii conversion HELP!!! Pin
John R. Shaw23-Nov-04 14:02
John R. Shaw23-Nov-04 14:02 
GeneralRe: ascii conversion HELP!!! Pin
Member 153128723-Nov-04 14:06
Member 153128723-Nov-04 14:06 
GeneralRe: ascii conversion HELP!!! Pin
John R. Shaw23-Nov-04 14:42
John R. Shaw23-Nov-04 14:42 
GeneralRe: ascii conversion HELP!!! Pin
RYU^^23-Nov-04 19:16
RYU^^23-Nov-04 19:16 
GeneralRe: ascii conversion HELP!!! Pin
Member 153128723-Nov-04 21:23
Member 153128723-Nov-04 21:23 
Generalascii conversion HELP!!! Pin
Member 153128723-Nov-04 13:22
Member 153128723-Nov-04 13:22 

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.