|
First
|
Prev |
Next
|
Last
Pages: 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179
creating button in dialog box Hello, I have created a dialog box with the IDE. I want to know if it's possible to dynamically add anoter window (a Cbutton for example) ? I have tried : afx_msg int MyWindow::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (CWnd::OnCreate(lpCreateStruct) == -1) return -1; CButton bt1; bt1.Create(_T("My ... 24 Apr 2008 17:25
CPtrList with CSocket Dear Joe, I think I need to replace List at all and use thread in Server instead, so, it will look like OnAccept( ...) { //Create thread by passing socket argument of the client.... } What do you think? Thank you. ... 24 Apr 2008 08:36
dmPaperLength limits Hi, I'd like to print some labels on a user defined paper. I'm setting dmPaperSize to DMPAPER_USER then I set dmPaperLength and dmPaperWidth to the desidered size. Finally I set the flags on dmFields. pDevMode->dmPaperSize = DMPAPER_USER; pDevMode->dmPaperLength = 1395; pDevMode->dmPaperWidth = 2155; pDevM... 24 Apr 2008 06:01
Ctrl+Alt+L does not work. Hi All: In VS 2008, the accelerator of active resolution bar is Ctrl+Alt+L. But it does not work. I create a MFC mdi sample, and set a menu's accelerator to Ctrl+Alt+L, it does not work too. Why? Thanks Fiveight ... 25 Apr 2008 11:48
How to validate CEdit only number input? I use Visual C++ 4.2 Professional. I want to validate so that user only able to input numeric values. I've looked for the keydown notify message, but I could not find one. I've tried to trap the input by deriving a new class named CEditExt from CEdit and make OnChar event but it did not work, I've debugged... 25 Apr 2008 13:22
CListCtrl Scroll Issue Dear All, I've created a CListCtrl with report style. in that I've added some colomns the horizontal scrollbar has been enbaled since the total width doesn't fit the client area. Now I changed the Client Size in OnNcCalcSize function using the following code. lpncsp_i->rgrc[0].right -= ( GetSystemMetrics( SM_... 24 Apr 2008 10:13
How to limit CEdit character? I want to know how to limit the number of character a CEdit can accept since I look for the properties of text length but I could not found it? My application should only allow 4 characters. Thank you very much. ... 24 Apr 2008 10:13
CListCtrl Item Selection Questions Hi I want to ask several things about CListCtrl here: 1. How to disable multiple item selection? 2. How to disable the column header click? Since I don't have any sorting facility in my application. Thank you very much. ... 25 Apr 2008 08:39
Tab Order, Button, Sys Menu Command in CPropertySheet&CPropertyPag I have a CPropertySheet and 6 CPropertyPages inside the CPropertySheet. Inside each CPropertyPage there are a CListCtrl and a Button. And on the CPropertySheet, there is OK and Cancel button. My questions are: A. How to set the Tab Order in the following order: 1. CPropertyPage Label 2. CListCtrl... 24 Apr 2008 02:03
CListCtrl Related Questions Hi I want to ask several things about CListCtrl here: 1. How to disable multiple item selection? 2. How to disable the column header click? Since I don't have any sorting facility in my application. Thank you very much. ... 24 Apr 2008 09:24 |