First  |  Prev |  Next  |  Last
Pages: 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
problem while calling UpdateData(false) in a loop
I have made a simple MFC(dialog based) program in which the dialog box has a CEdit box i have defined a DoDataExchange so my problem is whenever I do something like this for(i=0;;i++) { e=i; UpdateData(false); } where "e" is associated with the edit box Th... 13 May 2008 14:25
How to move focus / active control using Enter key?
I've ever seen an application that moves the active control using Tab or Enter key. So the application has a few Combo Boxes, CEdit, Checkboxes and to move from one control to another, we can use either Tab or Enter key. How to do that? I've tried to find it but I still haven't found any. Thank you ver... 14 May 2008 11:21
How to place focus back after error message window closed?
I have a form with 3 CEdit which are Year, Month and Day fields. If one of them is empty and user click OK or press Enter, an error message will displayed and the focus will back on where it was. I have tried this code but it won't focused back on where it was, it just back to the form but nothing is focused... 13 May 2008 23:41
Remove title bar, but system menu still work
Hi all, Now i want to remove the title bar of dialog, but system menu still work on taskbar. This can ? Anyone have idea? ... 13 May 2008 05:04
Will another CWinThread object get from main thread's messages
Hi all, My case is like this: I have two threads, which are both CWinThread object, one of them is main thread. When that non-main thread starts, it will enter the thread work function--_AfxThreadEntry, which is one private method MFC provides. During this method is called, m_pMainWnd, the member of this threa... 13 May 2008 10:50
center pane text of a CStatusBar
Env: WindowsXP, VC++6.00 I wonder how to center pane text of a CStatusBar. TIA ou ... 13 May 2008 01:45
How to know if a CListCtrl item is selected or not?
I use Visual C++ 4.2 Professional. I use the CListCtrl to display all data. I don't create the CListCtrl dynamically but from design form where I drag it onto the form. When user click a button, it will get the selected items and get the item data pointer. So I must check if the item has been selected or... 13 May 2008 05:04
How to capture toolbar button command
Hi there, I am trying to capture the message that is sent when one of my toolbar buttons are pressed. I extended the CMFCToolBar class to : class CGraphToolBar : public CMFCToolBar I have message map set accordingly: BEGIN_MESSAGE_MAP(CGraphToolBar, CMFCToolBar) ON_WM_CREATE() O... 13 May 2008 14:56
Anyone know how to force screen update after each GDI call - for debugging?
David Wilkinson wrote: Simon wrote: When I'm debugging GDI calls it would be very helpful if every time my code called a GDI function (e.g. Polyline) I could see immediately what effect it has on the screen. Normally what happens is that you step over that line of code and see nothing on the scre... 12 May 2008 17:08
Make button on the dialog currently selected programmatically
I have dialog-based MFC application. There are 2 buttons at the bottom of the dialog - "Start" and "Finish". After I press "Start" lengthy operation is performed. At the end of this operation I want "Finish" button to become selected automatically. Using GetDlgItem(IDFINISH)->SetActiveWindow(); does make "... 12 May 2008 19:29
First  |  Prev |  Next  |  Last
Pages: 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56