October 11th, 2012 08:10 AM
Never used this specific UIProgressDialog, but I am guessing you have to manually pump the messages through when you have the parent specified. In this case you need to call a function like the one...
October 11th, 2012 07:48 AM
I replied in your other thread, basically you should not change any selection or focus in the handler code for LVN_ITEMCHANGING. Instead use SetTimer() to make the changes after the handler has...
October 11th, 2012 05:52 AM
Does this help?
http://forums.codeguru.com/showthread.php?334950-CListCtrl-Notification-Behavior
October 5th, 2012 07:20 AM
If you don't understand the documentation, your best bet is probably to google for the function name and find code examples of how someone else used it. For example:
...
March 18th, 2009 06:47 AM
You can use EnumChildWindows or maybe EnumThreadWindows to detect the messagebox appearing and send a WM_COMMAND IDOK message to it...
http://msdn.microsoft.com/en-us/library/ms633497(VS.85).aspx
March 18th, 2009 06:40 AM
Hi!
Try
GetDC(NULL); // this DC will draw to the entire screen
or
CPaintDC(this); // this == a CWnd derived class
March 18th, 2009 05:50 AM
It seems you have a function pointer.
Try this:
uint4 protoID = (as->*getProtoID)();
March 18th, 2009 05:46 AM
The easy way out of "dll hell" would be to link statically with MFC.
You can find the setting in your project options.
March 18th, 2009 05:42 AM
Use CTreeCtrl::Expand
http://msdn.microsoft.com/en-us/library/hx4e0e58(VS.80).aspx
March 18th, 2009 05:40 AM
Put the function declaration directly in the template class instead...
March 18th, 2009 04:46 AM
GetTempPath http://msdn.microsoft.com/en-us/library/aa364992(VS.85).aspx
I suggest you simply don't put it in autorun if the folder is temporary...
March 17th, 2009 09:20 AM
If your exe is located in the windows temp folder, it might indicate it was extracted there by a zip tool. But I would not rely on this to make any important decisions regarding how my exe should...
March 16th, 2009 10:24 AM
Hi!
1. The checkbox can only be in the first column, but you can use SetColumnOrderArray to (visually) make it appear in the second column.
2. There should be many samples available. Look at...
March 16th, 2009 08:13 AM
This is correct, although it is possible to work around by creating two device independent bitmaps that share the same pixel memory.
March 11th, 2009 12:51 PM
Some error messages may be output to the stderr stream.
IIRC, you can redirect both stdout and stderr to file using.
prog.exe >2> out.txt
or possibly
March 11th, 2009 10:14 AM
Programmatically - I don't know.
Manually, right-click in the top-left corner of the console and choose Properties.
In the Layout tab, adjust the Height of the Screen Buffer Size.
March 11th, 2009 08:16 AM
Maybe your question is answered here:
http://msdn.microsoft.com/en-us/library/td6a5x4s(VS.80).aspx
March 11th, 2009 08:10 AM
int c;
while((c=fgetc(f))!=EOF)
if(c=='\n')
++num_lines;
March 11th, 2009 05:36 AM
Well, if I'm not completely mistaken a DC normally draws directly to screen. For instance, GetDC(NULL) will obtain a DC that draws directly on top of the entire screen surface. Such a DC does not...
March 10th, 2009 12:27 PM
It's very simple, you just lock a critical section in every function that accesses the queue.
CCriticalSection cs;
void read_queue() {
cs.Lock();
queue.read( ...
cs.Unlock();
}
March 10th, 2009 06:51 AM
Hi!
If your data type is COleDateTime, convert date to text using
CString DateAsString = m_pSet->m_column4.Format("%Y-%m-%d");
Regards / Z
March 10th, 2009 06:41 AM
Not necessarily. A DC with a bitmap is called a memory DC.