Search:

Type: Posts; User: Sfpiano

Search: Search took 0.01 seconds.

  1. Still no tooltip.

    Still no tooltip.
  2. Cannot for the life of me get win32 tooltips working

    void CreateToolTipForRect(HWND hwndParent)
    {
    INITCOMMONCONTROLSEX ic;
    ic.dwSize = sizeof(INITCOMMONCONTROLSEX);
    ic.dwICC = ICC_TAB_CLASSES;
    InitCommonControlsEx(&ic);

    // Create a...
  3. Replies
    3
    Views
    1,141

    Thanks salem

    Thanks salem
  4. Replies
    3
    Views
    1,141

    Getting return value of another process

    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...
  5. Replies
    2
    Views
    2,694

    That did it; thanks.

    That did it; thanks.
  6. Replies
    2
    Views
    2,694

    Copy region of bitmap to region of rectangle

    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...
  7. Replies
    2
    Views
    1,132

    Text box w/transparent bkgd flickers

    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...
  8. Replies
    3
    Views
    3,011

    Converting to std::basic_istream

    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...
  9. Replies
    1
    Views
    1,382

    Socket abruptly closes after function ends

    class Net{
    Create();
    Connect();
    SOCKET s;
    ...
    }

    main() {
    Net n;
    n.Create();
  10. Thanks... Could you be a little more helpful?

    Thanks... Could you be a little more helpful?
  11. Editing the main dialog when starting from a VS MFC project?

    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...
  12. Replies
    5
    Views
    893

    Your interval is too short, try 10000000.

    Your interval is too short, try 10000000.
  13. Determining what power of 2 a number is without loops

    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...
  14. Replies
    12
    Views
    1,458

    As far as I know, clear() resets failed states to...

    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...
  15. Replies
    4
    Views
    818

    Yeah, sorry about that, I just cut and paste code...

    Yeah, sorry about that, I just cut and paste code to make it shorter.



    class CEmployee {
    public:
    string name;
    Shift reqShift[7];
    }
  16. Replies
    4
    Views
    818

    Wierd string/class error

    class CEmployee {
    public:
    string name;
    Shift sArray[7];
    }

    class Shift {
    public:
    int type;
    float start, end;
  17. Is there a registry key at the address you're...

    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...
  18. Replies
    5
    Views
    769

    Tried that didn't work. I really don't get it...

    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.
  19. Replies
    4
    Views
    1,094

    They should be under Project/Project Settings ->...

    They should be under Project/Project Settings -> Parameters tab
  20. Replies
    3
    Views
    1,102

    If you use pointers you could set the objects to...

    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 =...
  21. Replies
    5
    Views
    769

    Strings don't copy over

    class CEmployee {
    string name; ...
    };

    CEmployee (const CEmployee &e ) {
    int i;

    this->name = e.name;
    ...
    }
  22. Replies
    3
    Views
    1,103

    Changing the desktop wallpaper?

    I've tried:



    string ft = "C:\\test.bmp";
    SystemParametersInfo(SPI_SETDESKWALLPAPER, NULL, ft, SPIF_SENDCHANGE)


    but that just changes my desktop to black.
Results 1 to 22 of 22