First  |  Prev |  Next  |  Last
Pages: 737 738 739 740 741 742 743 744 745 746 747 748 749
OnCtlColorDlg & return NULL
The MS documentation about WM_CTLCOLORDLG says: "If an application processes this message, it must return the handle of a brush. The system uses the brush to paint the background of the dialog box." The documentation about "CWnd::OnCtlColor" says something quite similar. But then when the wizzard generates OnC... 16 Feb 2005 17:30
Treeview
Hello Friends I add some values to my treeview, but now I want to write the selected value in a EDIT BOX, how can I do this ? is in the item bellow correct ? but what the command to get the value of selected item ? Regards Leandro void CTeste1Dlg::OnTvnItemexpandedTree1(NMHDR *pNMHDR, LRESULT *pResult) ... 16 Feb 2005 17:00
Receiving single bytes with MSComm
I got the transmit code working sending binary data for MSComm. I have the following code for receiving a string of bytes. bool CPSMDlg::GetChar() { COleVariant myVar; int hr; long lLen = 0; BYTE *pAccess; char buffer[255]; myVar.Attach (m_Comm.GetInput()); hr = SafeArrayGetUBound (myVar... 18 Feb 2005 20:51
listView question
Hi guys, I am using listView on Dialog and need to refresh it with a button, the following is the code. void CMyList::OnBnClickedRun(int ix, float x) { CString str; m_myList.InsertColumn(0, "Name1", LVCFMT_LEFT, 100); m_myList.InsertColumn(1, "Name2", LVCFMT_LEFT, 100); m_myList.DeleteAllItems(); ... 16 Feb 2005 14:57
Dialog and OnActivate
I have an MFC Dialog class and am trying to use OnActivate I look at the window with Spy++ and see the WM_ACTIVATE message being sent to the window, however my OnActivate method is not being called. Any ideas please? -- Michael Tissington http://www.oaklodge.com http://www.tabtag.com ... 16 Feb 2005 03:14
How to set/reset word wrapping in a CEdit control?
Hello everyone, How can I do it dynamically, from a menu option say? I know that if I change the multiline CEdit style to ES_AUTOHSCROLL, it will do it automatically. But how can I modify the CEdit style to enable/disable ES_AUTOHSCROLL dynamically? Thanks, Geo ... 16 Feb 2005 10:51
background color of individual list items
I was wondering if someone might know if it is possible change the background color of a listbox so that one line was the default white and another line was some other color. If not, I guess I will have to use individual label controls for this. I would rather use a listbox though. Thanks, Roger ... 15 Feb 2005 14:42
CScrollView and text height
I call DrawText to draw text on the CScrollView.When text has multi-line,how do I get the screen height to draw them? Thanks. ___________________________________ http://www.msale.net/bbs a Chinese-language message board for developers,including palm,ppc,symbian,and etc. http://www.zirong.net/blog/ Miken's p... 15 Feb 2005 13:40
Printing Bitmap
Hi, I'm using the code below to print some stuff I have associated graphics with the printer handler. Everything is fine on the video (a rectangle with one diagonal) but if I print I can get only the rectangle. If I don't use the bitmap but I draw directly inside graphics (insteat of gZone) it works. How can ... 16 Feb 2005 15:58
Getting Scroll Position of Dialog Box
Hello, I have a MFC application, which does NOT use Scrollbars to scroll the dialog, but the dialog scrolls using the ScrollWindow function, I was wondering how can I go about getting the x and y co-ordinates of the dialog box right after it has scrolled. I have tried GetScrollPos , but that appears to onl... 15 Feb 2005 13:40
First  |  Prev |  Next  |  Last
Pages: 737 738 739 740 741 742 743 744 745 746 747 748 749