Type: Posts; User: l46kok
Search took 0.01 seconds.
June 19th, 2012, 09:56 PM
I am trying to design an IDE-like (Non-Editable) program with a richtextbox control. Basically, I need the treeview which is positioned to the left side of the RTB to expand/collapse a certain...
When my instructor taught the course of .NET 4.0 with C#, we quickly went over the usage of XAML over a day and even then, he never stressed the importance of it. In a real world, how often is XAML...
April 19th, 2009, 09:20 AM
In my code, I'm trying to set an icon to a variable
Icon test = new Icon("systray.ico");
But this throws an exception and causes my program to crash if not handled (There should be no need to...
June 24th, 2008, 12:59 AM
I believe you are referring to the ID of the button.
In the resource compiler, right click on the button, click properties, and on the property window, there should be an entry for the ID of the...
June 23rd, 2008, 11:07 PM
Strange.. It didn't work either in Frame type or Bitmap type. Here's what I have for the Picture Control Class
// PictureCtrl.cpp : implementation file
June 14th, 2008, 02:53 PM
Ok, so if I understood you correctly, you want me to generate a class for the picture control, map it with OnPaint function and draw the rectangles there?
June 14th, 2008, 05:05 AM
Ok.. My problem is kind of screwed up, I'm not even sure if there is a solution available for this. If there isn't, I'd like to know any alternative way of doing this.
I placed a Picture Control...
June 14th, 2008, 04:58 AM
This worked excellently. Thanks.
June 12th, 2008, 11:21 PM
I'm wondering if there is a way to use DoModal boxes for the Jpeg files I'm trying to load onto the Picture Control I have in my application. For instance, CFileDialog has DoModal option for you, so...
I have a structure of the following
Oh man, I didn't think that would solve the problem, I'll try this and see what happens. Thanks a lot!
I found a solution for my prior problem
DWORD l_mPosition = ::GetMessagePos();...
Since DDX_Control accepts CWnd& type for the third variable,
DDX_Control(pDX, IDC_LIST_TASK, (CWnd&)pListCtrl);
Does this make sense? I think something's off.
IDC_LIST_TASK is my ID for the...
No, I didn't use Add Member variable. That menu item was disabled in the resource compiler, when I right clicked, so I went ahead and defined all the control variable in the header file and in the...
I tried doing that, but the code crashes, if I don't call GetDlgItem, each time in a different function. I think the object is somehow changed during runtime.
I'm using ListCtrl object, not...
Does not work. here's the code I have :
void CMainDialog::OnUpdateListCtrl(NMHDR * pNotifyStruct, LRESULT * result )
NMLISTVIEW* pNMListView = (NM_LISTVIEW*) pNotifyStruct;
Thanks. That cleared up my question once and for all!
One last question I want to ask -
How do you handle the messages for any selections made in the List Control in report view? Would it be...
One without the exit button (X mark) on the top-right corner of my dialog box.
And as you mentioned, that was the easiest method to go by, thanks ^^
While I'm here, I want to ask...
My question is ultra simple -
When I have a dialog box as the main window, how do I specify the DWSTYLE of the window it shows?
April 29th, 2008, 04:55 PM
Ok, this is probably something simple, but I cannot get it to work.
October 24th, 2006, 10:14 PM
Oh it worked for me too. Just forgot to put const on my return function. Thanks
October 24th, 2006, 09:50 PM
Thanks for the reply.
I've tried adding your code, but I still get an error stating
Printer::getPrintTime' : cannot convert 'this' pointer from 'const Printer' to 'Printer &'
What should I...
October 24th, 2006, 09:22 PM
I have the code as following
#define PRINT_PER_MINUTE 10;
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!