|
I have a modeless dialog with no Edit controls on it. The dialog is created by the WTL wizard. I would like to trap WM_CHAR messages at the dialog level. In the message map for the dialog I have added code like this:
MESSAGE_HANDLER(WM_KEYDOWN, OnKeyDown)
MESSAGE_HANDLER(WM_KEYUP, OnKeyUp)
MESSAGE_HANDLER(WM_CHAR, OnChar)
but no one of the methods gets called when pressing keys on the keyboard.
Any suggestion?
|
|
|
|
|
Sorry if it's wrong forum but there isn't one for OLEDB... Anyway. Is OLEDB simultaneous-multithread-access safe? Also ... using OLEDB - if different threads need to access the same database is it better to open that database from each thread or is it OK to use the same opened database object from different threads at the same time - reuse the connection?
Sorry for such a basic question.
|
|
|
|
|
AFAIK OLEDB is thread safe.
Good luck
-pete
|
|
|
|
|
Hi all,
I want to develope ATL Container (in which i can host other activex control). How do i proceed, App Wizard does not help more to develope the ATL Container.
Please show me the right direction...........
I will realy appriciate any help !
Thank you,
Vishal More
|
|
|
|
|
Take a look at CAxWindow.
|
|
|
|
|
I have created Composite Control and I have placed a Slider Control on that Composite Control( i.e The dialog...) Now my problem is
I get the Edge(the dotted rectangle on that slider control) So how do i remove those edge or dotted rectangle
I am using
VC++ 6.0
ATL wizard for creating composite control
regards
Balkrishna Talele
|
|
|
|
|
How to add toolbar to WTL Dialogbased Application? Pl give Example.
Thanks in advance
satya
|
|
|
|
|
I want to provide exclusively only Drag ability to my CListViewCtrl, which is displaying the list of File names using SHGetFileInfo.
I mean am showing list of files located in a specific folder using CListViewCtrl.I am getting the details of files using HGetFileInfo.
Now,i should be able to drag the selected file form CListViewCtrl to windows explorer(into any folder/desktop).
RAGU MANDA
(MALAYSIA)
|
|
|
|
|
actualy i have MDI app w/out doc/view arch.
so i create views on DialogImpl base
class CSearchView :
public CDialogImpl<csearchview>,
public CDialogResize<csearchview>,
public CWinDataExchange<csearchview>
---
Questions is,- how to create CMultiPaneStatusBarCtrl
on dialog. & also i need auto-resize it with
CDialogResize.
also there is one problem what CDialogResize does not accepts CStatusBar because it is not a window!
atlwin.h & atlctrls.h asserts on ::IsWindow(m_hWnd)
so how-to ?
----------------------------
never stop coding.
|
|
|
|
|
Hi,
How to change/set text color in RichEditCtrl/CRichEditCtrlView ???
I'm using WTL.
thanks
Bandu
|
|
|
|
|
I have writtern a COM Service, and i am using LPSAFEARRAY and LPSAFEARRAY * in inteface methods.
When i try to create the com on a remote machine it did not create..
but when i try to create on local machine it creates but i am unable to call any methods it gives me error "Bad Variable Type"
Can anyone help...
Humair Syed
|
|
|
|
|
"LPSAFEARRAY" and "LPSAFEARRAY*" can be used only inside C++ sources, but not in IDL files. The valid IDL syntax for "LPSAFEARRAY" is SAFEARRAY(some_simple_type). For example:
[] HRESULT Test1([in] SAFEARRAY(BSTR) StringsNotApplicableForVB)<br />
[] HRESULT Test2([in] SAFEARRAY(BSTR) *Strings)<br />
[] HRESULT Test3([in,out] SAFEARRAY(BSTR) *Strings)<br />
[] HRESULT Test4([out,retval] SAFEARRAY(BSTR) *Strings)
With best wishes,
Vita
|
|
|
|
|
In Visual basic, we can use TypeName to get the name of a COM object.
How can I do that in VC?
Some people told me that I should try ITypeInfo, but I can't find anything useful in it.
Thanks.
|
|
|
|
|
I want to fire an event when a table(or something that has no clicked event already) is clicked. can anyone help me about this?
bolat
|
|
|
|
|
Bolat wrote:
I want to fire an event when a table(or something that has no clicked event already) is clicked. can anyone help me about this?
can you please tell me where this table situated.
-----------------------------
"I Think It Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
But where is this TABLE situated
-----------------------------
"I Think It Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
I mean in any html page. for example left menu bar. I want to locate some business logic insted of redirecting to another page.
bolat
|
|
|
|
|
i have MDI app (whithout Doc/View),
i have an FormView ( IDD_SEARCH_FORM ) on which i have
CStatic control (standart group box)
SearchView.h
--------------
class CSearchView : public CDialogImpl<CSearchView>,
public CDialogResize<CSearchView>
actualy all is ok - all controls resized as needed except group box is not __repainted__, but __resized__ !!
how to get it working ?
----------------------------
never stop coding.
|
|
|
|
|
|
Auch... thanks i did not know about "transparent" ...
----------------------------
never stop coding.
|
|
|
|
|
hi
i am creating one dll using ATLCom . how can i include this dll into mfc dialog based application .
plz tell me ,what is the difference between ATLCom dll and MFC Application wizard dll .
thank you
This allows you to set your preferences for the discussion boards
|
|
|
|
|
|
hi
Thanks for your help.i include the header file and .lib file,error message display in compile time.
" the file or folder does not exit(header file)".
tankyou.
|
|
|
|
|
nevis wrote:
" the file or folder does not exit(header file)".
1) That does not look like a valid compile error. If you are going to ask questions about compile errors post the actual compile error message by copy/paste.
2) It appears you do not know how to #include files.
I don't know how to explain that to someone. It is a fundamental operation of developing with C++. If you don't yet posses a complete understanding of this subject you may be engaged in a project that is beyond your capabilities.
But, that's just my opinion... I could be wrong.
"No matter where you go, there your are." - Buckaroo Banzai
-pete
|
|
|
|
|
Assuming that you did syntactically include the header file correctly with the #include statement and the compiler can't find it you may want to make sure you have included the path to your header file directory in the Includes section on the Directories tab in the Options window under the Tools menu.
- Nick Parker My Blog | My Articles
|
|
|
|