I am writing an C# plugin which contains a subclassed CTreeCtrl( in c++ ). I wrote my own OnKeyDown() function and I'm having a strange (may be normal?) behavior: VK_UP, VK_DOWN, VK_LEFT and VK_RIGHT keys do not enter this function, though other virtual keys do. I checked it out with Spy++ and WM_KEYDOWN messages **are** being sent to my control''s window for every VK. The problem is I wish my control to be navigated with keys (as in Explorer, you now), and somewhat I'm loosing it... I don't know where or how to catch those keys. Any clues? NG
Neagoe Gabriel
Posts
-
CTreeCtrl derived class problem -
Xp Like ScrollBar in VC++ 6.0Hi, i want to use in vc++ 6.0 on windows Xp, xp like scrollbars, but i`m creating the scrollbar control in a dialog witch is in a dynamicaly linked dll... NG
-
Howto know when a dialog endsOverwrite Create in base class...:| NG
-
difference betwwen static & dynamic in MFCstatic will have all the MFC in your exe no need for MFC dll`s a very large file dynamic will have mfc in separate dll`s ... NG
-
random number generatorsrand((unsigned) time(0)) -- initialize random number generator on a timer do int myNumber = rand(); NG
-
playing soundDirectShow API PlaySound() function for wav sounds MCI for midi... NG
-
capturing bitmap and printyou can find here on codeproject 1: Window Capture 2: DDB to DIB 3: SaveDibToFile() 4: Create a printerDC 5: Bitblt the bitmap on the dc 6: EndDocument() --- print that are the steps... NG
-
Dual Monitors - 1 needs to sleepUse dual View Mode on your video card to have to separate display, and then you can create Direct3D surface on the second monitor, and to sleep it... NG
-
Code To Terminate Application Using Key ?void CYourStatic::PreSubclassWindow() { // TODO: Add your specialized code here and/or call the base class CWnd::PreSubclassWindow(); ModifyStyle(0, SS_NOTIFY); } NG
-
How to color the dialog leaving some user defined border?here you have a memory leak HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor); hbr = CreateSolidBrush(RGB(255,0,0)); return hbr; creating a brush every time that a control of dialog, request it do on OnPaint() { CPaintDC dc(this); CRect rc; GetClientRect( &rc ); rc.DeflateRect(10,10,10,10); dc.FillSolidRect( &rc, RGB(0,0,0)); } NG
-
How to show the Bitmap at top ?void MyDlg::OnPaint() { CPaintDC dc(this); ShowBitmap(&dc); } this is the only paint you need to do... NG
-
static constructors ?[Message Deleted]
-
antialiasing with MFCfor programming....:) NG
-
C++ in Visual Studio.NETadd #include add before return 0 getch();:) NG
-
antialiasing with MFClook over the internet for graphics gems books in pdf format and u have there everithing you need... NG
-
File I/Ohttp://www.sysinternals.com/SourceCode.html[^] and u have there the source code for AccessEnum v1.2 NG
-
Adding CStringArray data into another CStringArray...help..use this details in MSDN, it`s a member of CStringArray void InsertAt( int nStartIndex, CObArray* pNewArray ); CODE: CStringArray strInfo1; CStringArray strInfo2; CStringArray newStr; strInfo1.Add("TEST 1->1"); strInfo1.Add("TEST 1->2"); strInfo1.Add("TEST 1->3"); strInfo1.Add("TEST 1->4"); strInfo1.Add("TEST 1->5"); strInfo2.Add("TEST 2->1"); strInfo2.Add("TEST 2->2"); strInfo2.Add("TEST 2->3"); strInfo2.Add("TEST 2->4"); strInfo2.Add("TEST 2->5"); newStr.InsertAt( 0, &strInfo1); newStr.InsertAt( strInfo1.GetSize(), &strInfo2); for( int i=0; i
-
Memory requirement in CListCtrlMake a virtual list... NG
-
Help with precompiled headers needed!!add to your c files #include "stdafx.h" if u are using then into a visual c++ project with precompiled header project option :D NG
-
CHttpyou have define UNICODE in your project because TCHAR type will have a size of 2 bytes then.... an CFile will work different or u can send by mail(to me) your file to see where.... NG -- modified at 10:27 Monday 5th September, 2005