Click here to Skip to main content
16,005,417 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to resolve Regsvr32 Error? Pin
Franz Klein21-Nov-04 22:19
Franz Klein21-Nov-04 22:19 
AnswerRe: How to resolve Regsvr32 Error? Pin
nguyenvhn21-Nov-04 22:30
nguyenvhn21-Nov-04 22:30 
AnswerRe: How to resolve Regsvr32 Error? Pin
22491721-Nov-04 23:40
22491721-Nov-04 23:40 
GeneralRe: How to resolve Regsvr32 Error? Pin
vishalmore22-Nov-04 0:06
vishalmore22-Nov-04 0:06 
GeneralRe: How to resolve Regsvr32 Error? Pin
22491722-Nov-04 0:30
22491722-Nov-04 0:30 
GeneralRe: How to resolve Regsvr32 Error? Pin
Franz Klein22-Nov-04 2:43
Franz Klein22-Nov-04 2:43 
GeneralRe: How to resolve Regsvr32 Error? Pin
Antony M Kancidrowski22-Nov-04 4:58
Antony M Kancidrowski22-Nov-04 4:58 
Generalhelp in DrawItem() Pin
Tripura.K21-Nov-04 21:29
Tripura.K21-Nov-04 21:29 
Hi all,
I have a dialogbox created in an SDI application on which i placed a ownerdraw buttons and i am displaying some characters on the buttons and when i open the dialog box for the first time with shift key pressed on keyboard i am able to see capital letters on the buttons and when i open the dialog box with out pressing the shift key small letters are apperaring and if I press shift key on the keyboard after opening the dialog box and click on the button i could see the capital letter on the button but my reqirement is when i click shift key on my keyboard after opening the dialog box i shold be able to see capital letters on all the buttons without clicking them
my drawitem function is as follow:
void MybutCls::DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct)
{
::DrawFrameControl(lpDrawItemStruct->hDC, &lpDrawItemStruct->rcItem,
DFC_BUTTON, BS_PUSHBUTTON);
int iSaveDC;
CDC* pDC;
pDC=CDC::FromHandle(lpDrawItemStruct->hDC);
VERIFY(pDC);
short caps=GetKeyState(20);
if((0x8000 ==(0x8000 & GetKeyState(16))&& !caps)||(0x8000 !=(0x8000 & GetKeyState(16))&& caps))
{
if(lpDrawItemStruct->CtlID==IDC_BUTTON65)
::DrawText(lpDrawItemStruct->hDC,"A",1,&lpDrawItemStruct->rcItem, DT_SINGLELINE|DT_VCENTER|DT_CENTER);
if(lpDrawItemStruct->CtlID==IDC_BUTTON66)
::DrawText(lpDrawItemStruct->hDC,"B",1,&lpDrawItemStruct->rcItem, DT_SINGLELINE|DT_VCENTER|DT_CENTER);
if(lpDrawItemStruct->CtlID==IDC_BUTTON67)
::DrawText(lpDrawItemStruct->hDC,"C",1,&lpDrawItemStruct->rcItem, DT_SINGLELINE|DT_VCENTER|DT_CENTER);
}
if((0x8000 ==(0x8000 & GetKeyState(16))&& caps)||(0x8000 !=(0x8000 & GetKeyState(16))&& !caps))
{
if(lpDrawItemStruct->CtlID==IDC_BUTTON65)
::DrawText(lpDrawItemStruct->hDC,"a",1,&lpDrawItemStruct->rcItem, DT_SINGLELINE|DT_VCENTER|DT_CENTER);
if(lpDrawItemStruct->CtlID==IDC_BUTTON66)
::DrawText(lpDrawItemStruct->hDC,"b",1,&lpDrawItemStruct->rcItem, DT_SINGLELINE|DT_VCENTER|DT_CENTER);
if(lpDrawItemStruct->CtlID==IDC_BUTTON67)
::DrawText(lpDrawItemStruct->hDC,"c",1,&lpDrawItemStruct->rcItem, DT_SINGLELINE|DT_VCENTER|DT_CENTER);
}
iSaveDC=pDC->SaveDC();
pDC->RestoreDC(iSaveDC);
// Invalidate(FALSE);
}

Generalto wake up lcd Pin
chels21-Nov-04 21:17
chels21-Nov-04 21:17 
Generaltab control in vc++ Pin
vc-programmer-21-Nov-04 20:56
vc-programmer-21-Nov-04 20:56 
GeneralRe: tab control in vc++ Pin
Yulianto.21-Nov-04 21:14
Yulianto.21-Nov-04 21:14 
GeneralRe: tab control in vc++ Pin
vc-programmer-21-Nov-04 21:36
vc-programmer-21-Nov-04 21:36 
GeneralRe: tab control in vc++ Pin
vc-programmer-21-Nov-04 22:28
vc-programmer-21-Nov-04 22:28 
GeneralCHtmlView Pin
alex.barylski21-Nov-04 20:13
alex.barylski21-Nov-04 20:13 
GeneralRe: CHtmlView Pin
BaldwinMartin23-Nov-04 10:14
BaldwinMartin23-Nov-04 10:14 
Generalsend and receive a byte Pin
chels21-Nov-04 20:11
chels21-Nov-04 20:11 
GeneralRe: send and receive a byte Pin
BaldwinMartin23-Nov-04 10:15
BaldwinMartin23-Nov-04 10:15 
Generalprogramming lcd Pin
chels21-Nov-04 19:01
chels21-Nov-04 19:01 
GeneralRe: programming lcd Pin
Ryan Binns21-Nov-04 19:53
Ryan Binns21-Nov-04 19:53 
GeneralVisual C++ 6.0 Pin
max_gundam1521-Nov-04 16:29
max_gundam1521-Nov-04 16:29 
GeneralRe: Visual C++ 6.0 Pin
ThatsAlok21-Nov-04 17:32
ThatsAlok21-Nov-04 17:32 
GeneralFind your apps path Pin
Don1221-Nov-04 15:27
Don1221-Nov-04 15:27 
GeneralRe: Find your apps path Pin
Jack Puppy21-Nov-04 16:19
Jack Puppy21-Nov-04 16:19 
GeneralPicture Problem Pin
Kehllendros21-Nov-04 15:27
Kehllendros21-Nov-04 15:27 
GeneralRe: Picture Problem Pin
BaldwinMartin23-Nov-04 10:18
BaldwinMartin23-Nov-04 10:18 

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.