Click here to Skip to main content
15,894,539 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: sorting an STL list of =references= to objects Pin
kerchunk3-Dec-09 19:42
kerchunk3-Dec-09 19:42 
GeneralRe: sorting an STL list of =references= to objects Pin
Simple Inheritance4-Dec-09 10:38
Simple Inheritance4-Dec-09 10:38 
GeneralRe: sorting an STL list of =references= to objects Pin
kerchunk6-Dec-09 9:03
kerchunk6-Dec-09 9:03 
QuestionHow to get clipping region of windowless activex? Pin
smalti1-Dec-09 9:15
smalti1-Dec-09 9:15 
QuestionError on using BMP image in LoadBitmap Pin
am 200926-Nov-09 0:47
am 200926-Nov-09 0:47 
AnswerRe: Error on using BMP image in LoadBitmap Pin
KingsGambit29-Nov-09 19:16
KingsGambit29-Nov-09 19:16 
QuestionHow to control IWMPPlayer? Pin
kcynic25-Nov-09 16:30
kcynic25-Nov-09 16:30 
QuestionNo Keyboard Support for ActiveX Controls in WIN32 App Pin
hZenz23-Nov-09 0:12
hZenz23-Nov-09 0:12 
I have to embed an ActiveX control into an simple WIN32 app. The parent window is created with CreateWindow() and the control - a MS Flex Grid Control - is embedded with the following code (ATL):

#import "../msflxgrd.ocx"
using namespace MSFlexGridLib;

int APIENTRY _tWinMain(HINSTANCE hInstance,
                     HINSTANCE hPrevInstance,
                     LPTSTR    lpCmdLine,
                     int       nCmdShow)
{
.... 

    _Module.Init(NULL, hInstance);
    AtlAxWinInit();
... 
} 

atlWndClassName = CAxWindow2::GetWndClassName();
axctrl = ::CreateWindow(atlWndClassName,
        _T("{6262d3a0-531b-11cf-91f6-c2863c385e30}"),
        WS_CHILD, 310, 10, 300, 300,
        (HWND)hWndParent, (HMENU)10, hInst, NULL); 
ShowWindow(axctrl, SW_SHOW); 
UpdateWindow(axctrl); 


Everything works fine with this example, but it is not possible to move from cell to cell with the arrow keys. When i connect Spy++ to the application, i can see, that WM_KEYDOWN and WM_KEYUP messages are sent to the Flex Grid Control. The same problem exists with the MS Calendar Control and other controls.

When these controls are embedded into the Microsoft ActiveX Control Test Container or into a MFC-Dialogbox the keyboard control works fine.

Has someone an idea, what code is necessary to support keyboard control for ActiveX controls in simple WIN32 apps?
QuestionHow to implement a multi-column menu? Pin
hawkgao012919-Nov-09 21:00
hawkgao012919-Nov-09 21:00 
AnswerRe: How to implement a multi-column menu? Pin
hawkgao012919-Nov-09 21:58
hawkgao012919-Nov-09 21:58 
QuestionExposing methods via a COM object Pin
mbet87817-Nov-09 22:24
mbet87817-Nov-09 22:24 
AnswerRe: Exposing methods via a COM object Pin
Jonathan Davies18-Nov-09 7:42
Jonathan Davies18-Nov-09 7:42 
AnswerRe: Exposing methods via a COM object Pin
Lim Bio Liong18-Nov-09 22:59
Lim Bio Liong18-Nov-09 22:59 
AnswerRe: Exposing methods via a COM object Pin
mbet87825-Nov-09 23:09
mbet87825-Nov-09 23:09 
QuestionHow to prevent Quicksort stack overflow? Pin
crazy6612-Nov-09 6:21
crazy6612-Nov-09 6:21 
AnswerRe: How to prevent Quicksort stack overflow? Pin
Richard MacCutchan12-Nov-09 9:14
mveRichard MacCutchan12-Nov-09 9:14 
QuestionERROR - Object deleted before window was destroyed Pin
kcynic12-Nov-09 1:23
kcynic12-Nov-09 1:23 
AnswerRe: ERROR - Object deleted before window was destroyed Pin
Stuart Dootson12-Nov-09 5:03
professionalStuart Dootson12-Nov-09 5:03 
GeneralRe: ERROR - Object deleted before window was destroyed Pin
kcynic12-Nov-09 14:00
kcynic12-Nov-09 14:00 
GeneralRe: ERROR - Object deleted before window was destroyed Pin
kcynic12-Nov-09 23:45
kcynic12-Nov-09 23:45 
QuestionATL Exe Service Pin
Anthony988710-Nov-09 3:45
Anthony988710-Nov-09 3:45 
QuestionRe: ATL Exe Service Pin
ChrisSieben1-Dec-09 3:58
ChrisSieben1-Dec-09 3:58 
QuestionWTL Custom message handling in the message map? [modified] Pin
Member 38198215-Nov-09 23:13
Member 38198215-Nov-09 23:13 
AnswerRe: WTL Custom message handling in the message map? Pin
KingsGambit9-Nov-09 9:03
KingsGambit9-Nov-09 9:03 
QuestionHow to change button color in ATL Pin
am 20094-Nov-09 20:08
am 20094-Nov-09 20:08 

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.