Still no tooltip.
Type: Posts; User: Sfpiano
Still no tooltip.
void CreateToolTipForRect(HWND hwndParent)
{
INITCOMMONCONTROLSEX ic;
ic.dwSize = sizeof(INITCOMMONCONTROLSEX);
ic.dwICC = ICC_TAB_CLASSES;
InitCommonControlsEx(&ic);
// Create a...
Thanks salem
I have a file where I scan each line for a certain word and return any line that contains it. Instead of scanning through the entire file, I am trying to just use 'findstr' from the command line. I...
That did it; thanks.
I want to take part of a bitmap and copy it onto part of a rectangle. For example, take the region from (10,10) to (20,20) of the bitmap and copy it to the region from (35,35) to (45,45) of a...
I have a textbox that I applied the WS_EX_TRANSPARENT style to, and a bitmap background for my main window. My problem is that whenever I select text it flickers and sends a 'bar' across the screen...
I need to call a function with the following prototype:
XmlDocument( std::basic_istream< TCHAR > & stream )
I'm trying to open a file and pass the stream in, but I can't figure out how to...
class Net{
Create();
Connect();
SOCKET s;
...
}
main() {
Net n;
n.Create();
Thanks... Could you be a little more helpful?
I used VS to create the standard MFC project. When I run the program now, I get a window with a menu, toolbar, and a blank dialog region. My question is how can I edit this region? It's not in the...
Your interval is too short, try 10000000.
For example 2^5 is 32, so given the input 32, the result would be 5. I know I could do this like:
while( num > 0 ) num >>= 1;
but I was wondering if there was some bit operation or something...
As far as I know, clear() resets failed states to normal. Say you try to open a non-existant file, now that stream will evaluate to a fail state, but if you call clear() on it, the state gets...
Yeah, sorry about that, I just cut and paste code to make it shorter.
class CEmployee {
public:
string name;
Shift reqShift[7];
}
class CEmployee {
public:
string name;
Shift sArray[7];
}
class Shift {
public:
int type;
float start, end;
Is there a registry key at the address you're pointing to? The first thing that comes to my mind is that there isn't, so key actually gets set to null, and it crashed when you call GetValue on a null...
Tried that didn't work. I really don't get it because it's just the string parameter that doesn't copy over, everything else does.
They should be under Project/Project Settings -> Parameters tab
If you use pointers you could set the objects to NULL when you destroy them, then check to see if an object is not NULL before you use it. Or in your deconstructor you could set a flag like bDead =...
class CEmployee {
string name; ...
};
CEmployee (const CEmployee &e ) {
int i;
this->name = e.name;
...
}
I've tried:
string ft = "C:\\test.bmp";
SystemParametersInfo(SPI_SETDESKWALLPAPER, NULL, ft, SPIF_SENDCHANGE)
but that just changes my desktop to black.