I have tried trapping the WM_CHAR message within a CDHtmlDialog based dialog but couldn't. I used Spy++ and discovered that the messages WM_KEYDOWN,WM_KEYUP and WM_CHAR were actually sent to my dialog. But they don't get passed to my code in either OnChar,OnKeyDown or OnKeyUp. I need to handle either of the three messages so that I can read from either my barcode scanner or the keyboard. Please help?:(( What would life be without programmers and salesmen?:suss:
Kene
Posts
-
CDHtmlDialog couldn't trap WM_CHAR -
PDF-417 barcode readersDo you have thier website, physical address or anything I can use? What would life be without programmers and salesmen?
-
PDF-417 barcode readersAnyone with an idea of where I can get 2D barcode readers that can read PDF-417 symbols and cost less than $170?:(( What would life be without programmers and salesmen?
-
New Nigerian Scam?You seem to have a bias when it comes to dealing with Nigerians. If the mail wasn't addressed to you why did you respond to it? Tell me, would you have reacted differently if the mail had been from another location? Majority of Nigerians are honest and hardworking people.And I think the same thing applies to your country. The way and manner you handled this issue shows you know little or nothing about Nigeria and her over 150 million population. I will suggest you visit www.efccnigeria.org if you have any problem with Nigerian business or better still the FBI if you have any doubt.:mad: What would life be without programmers and salesmen?
-
Change button textI believe this is what u're looking 4: CWnd* pWnd = GetDlgItem(IDC_PROCESSFILE); pWnd->SetWindowText(_T("Process file")); What would life be without programmers and salesmen?
-
How to replace a variable everywhere in a big project ?VStudio.Net (i.e ver 7.0) comes with this feature. It's called replace in files. And can be found on the edit menu. What would life be without programmers and salesmen?
-
CDHTMLDialog with FramesetI tried using a frameset on the CDHTMLDialog that comes with mfc 7.0. I discovered that the HTML controls on the pages in the frames are not sending messages to the dialog. For Example, for the following: DHTML_EVENT_ONCLICK(_T("ButtonCancel"), OnButtonCancel) The method 'OnButtonCancel' doesn't get called. Pls help me out:(( What would life be without programmers and salesmen?
-
Sorry guys, Britney got marriedGuys, what about Beyonce? Is she still there for me?:cool: What would life be without programmers and salesmen?
-
DCOM/COM+ without ATL?Christian Graus wrote: Why without ATL ? My first taste of VC++ some years back was with MFC. I was particular thrilled about the wizards. Since then, I've been used to doing things in MFC style. You can still help me out by giving me steps I can take to achieve results (either in MFC or ATL).:sigh: Surely any advise or help will be appreciated:) What would life be without programmers and salesmen?
-
DCOM/COM+ without ATL?Hi, I'm new to COM tech. My few COM experiences are just a few OLE Automation samples in MFC. But now I have a Project that will require me calling an object mtd across machine boundary. Can I achieve this in MFC 7.0? If yes how? Thanks in advance! ;) What would life be without programmers and salesmen?
-
COM/DCOM without ATLHi, I'm new to COM tech. My few COM experiences are just a few OLE Automation samples in MFC. But now I have a Project that will require me calling an object mtd across machine boundary. Can I achieve this in MFC 7.0? If yes how? Thanks in advance!;) What would life be without programmers and salesmen?
-
How Can I pass a dynamic message from a parent class to its derived class?Can I see the details of ur OnSize implementation?:sigh: What would life be without programmers and salesmen?
-
How Can I pass a dynamic message from a parent class to its derived class?You can try calling a virtual mtd (e.g doresize) from ur class A message handler. Remember to implement the mtd in B and C. OR.. If class A is a CWnd kind-of (which I feel it is), then implement the usaul MFC's overidables like 'OnSize' e.t.c. good luck! What would life be without programmers and salesmen?
-
How Can I pass a dynamic message from a parent class to its derived class?I don't know about.. BEGIN_DYNAMIC_MAP() ... END_DYNAMIC_MAP() I think it should be similar to BEGIN/END_MESSAGE_MAP. I'll also assume ur classes (i.e A,B,C) can recieve messages. MFC docs says " if a message can't be matched in a derived class's message map, the framework also searches the message map of its immediate base class". So check to ensure u have something like these... //for class B BEGIN_MESSAGE_MAP(B, A) //.. END_MESSAGE_MAP //for class C BEGIN_MESSAGE_MAP(C, B) //.. END_MESSAGE_MAP search MFC doc for more details goodluck! What would life be without programmers and salesmen?
-
Loading an Icon to a Button from a local directory in runtimeI think ur problem is loading icons (or images) at runtime, from files. MFC 7.0 solves this problem with CImage class, check the docs for details. U can also search this site. There are button classes here that u can use instead. What would life be without programmers and salesmen?
-
How can I override CPropertySheet::RemovePage(int nPage) in a derived class?I will like to believe u probably need to do some things before removing the page. Try implementing these 2 mtds: void CMyPropertySheet::RemovePage(CPropertyPage *pPage) { //do ur stuff... //...... //finally, call the parent mtd... CPropertySheet::RemovePage(pPage); } void CMyPropertySheet::RemovePage(int nPage ) { //do ur stuff... //...... //finally, call the parent mtd... CPropertySheet::RemovePage(nPage ); } Goodluck! What would life be without programmers and salesmen?
-
COM compiler supportI'm still a green horn in the area of COM and I have some business object classes I want to put in a com server(either DLL or EXE).How do I achieve this using wizards and Compiler COM support(attributes etc.)? I've been using MFC for some time now. What would life be without politicians and programmers?
-
PDF 417 barcode reader/printerThanks Roger. I've seen the article u suggested. It doesn't cater for PDF 417 barcodes. :((Please any further help will be appreciated! What will life be without politicians and programmers?
-
PDF 417 barcode reader/printerHelp! I'm working on a project that involves capturing fingerprints and encoding them as PDF 417 barcodes on a cheque. Can anyone provide an mfc style api that reads and prints barcodes in this format? ;)I'll appreciate if it's free Pls.