CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: cosmicvoid

Page 1 of 3 1 2 3

Search: Search took 0.06 seconds.

  1. Replies
    1
    Views
    3,056

    Re: Strange problem with simple scroll bar

    I have found a way to get the results I expect, but I'm puzzled as to whether this is the usual way a scroll bar needs to be handled. I've never had this issue before, and I've used scroll bars many...
  2. Replies
    1
    Views
    3,056

    Strange problem with simple scroll bar

    I have a dialog that contains a scroll bar (SB_CTL) that doesn't give the expected behavior. The first clue is that the size of the thumb button is wrong (too large) for the range/page proportions.
    ...
  3. Re: YA disabled control tooltip issue

    Igor,
    I decided not to go into a long windy reply to your points, and I'm sorry that I didn't realize you were expecting a compilable sample. And thanks for your sample, I will experiment with it...
  4. Re: YA disabled control tooltip issue

    Success with the phantom control method. The key is here:
    http://forums.codeguru.com/showthread.php?125134-How-can-I-change-the-z-order-of-control-in-the-Dialog-Editor&p=336555#post336555
  5. Re: YA disabled control tooltip issue

    I fixed a bug in my WM_MOUSEMOVE handler, but no matter what I've tried I cant get the TTM_EVENTRELAY message to trigger a tooltip window. I've tried several other pieces of sample code that use the...
  6. Re: YA disabled control tooltip issue

    I think WM_MOUSEMOVE, ChildWindowFromPoint(), TTM_RELAYEVENT are documented. I think the internals of the tooltip class proc are the mystery, so there is no way to know why my experiments are...
  7. Re: YA disabled control tooltip issue

    Victor, I did not consider the TTN_NEEDTEXT notification, because the tip text is already known to the tooltip when the control is added with the TTM_ADDTOOL message. All the non-disabled controls...
  8. [RESOLVED] YA disabled control tooltip issue

    I know the topic of tooltips not showing for disabled controls is very "mature", and I'm reluctant to ask, but after looking at 100's of search hits, on this forum, MSDN, and others, I'm stuck.

    I...
  9. Re: [RESOLVED] Highlite entry in GetOpenFileName() list, programmatically.

    Thanks Victor,
    The main idea that your linked article gave me was that the shell object method did not provide any of the notifications or actions that would do what I need. Also, it looks like a...
  10. Re: [RESOLVED] Highlite entry in GetOpenFileName() list, programmatically.

    I've run into a snag while testing this code. The initial development was done in XP-sp3, and the code works as expected; however, testing in Win7HP-64 gives different results. Here is the relevant...
  11. Re: [RESOLVED] Highlite entry in GetOpenFileName() list, programmatically.

    Thanks very much, Victor. That is just what I needed, and simplifies my code a lot.
  12. Re: [RESOLVED] Highlite entry in GetOpenFileName() list, programmatically.

    The window handle passed to the hook, and the handle in the WM_NOTIFYs, are that of the dialog. I am also guessing that the empty "ListBox" window is just a place-holder in the dialog template, used...
  13. Re: Highlite entry in GetOpenFileName() list, programmatically.

    Making progress...

    I discovered that a few other CDN_ notifications occured at the time the dialog became visible, but before any user interaction occured. So I trapped on the first occurance of...
  14. Re: Highlite entry in GetOpenFileName() list, programmatically.

    Thanks edpat,
    I tried trapping the CDN_INITDONE notification, and discovered some interesting results.

    At the time of CDN_INITDONE, the Spy++ listing for the OFN dialog shows a window with a...
  15. Re: Highlite entry in GetOpenFileName() list, programmatically.

    Hi Igor,
    I already have a hook established to the OFN dialog, as I am doing other things with it (keeping track of size & position). So I will have to find a way to get a handle to the list view...
  16. Highlite entry in GetOpenFileName() list, programmatically.

    I'm using the GetOpenFileName() common dialog, with no problems. Now I want to add a feature of making the default filename be supplied (with the last opened filename). This is not an issue, per se,...
  17. Re: Updating text in dialog box when it's inactive

    Try putting UpdateWindow(hWnd) into your code where you want the window to update.
  18. Replies
    3
    Views
    4,342

    Re: GetClipboardData function help

    None of the above. Its actually a custom registered format.
    typedef struct _CBdata {
    int chnr;
    UINT64 ch64[MAXCOLS];
    } CBDATA, *PCBDATA;
    UINT CFE_CBformat;
    CFE_CBformat =...
  19. Replies
    3
    Views
    4,342

    Re: GetClipboardData function help

    The pointer returned by GlobalLock() points to a block owned by the clipboard, but the pointer is valid in your program's memory space, so there should be no fault on a copy operation. Here is a...
  20. Replies
    4
    Views
    1,073

    Re: Printing a String

    Try it without the "&" in front of lpBuffer[i].lpData, as "&lpBuffer[i].lpData" would be the address of the string pointer, not the address of the string.
  21. Replies
    1
    Views
    1,091

    Re: Missing mouse move messages?

    After playing with this for several more hours, I have concluded that the mouse messages are actually missing, due to low mouse resolution or low reporting rate or both. I bet the reason the drawing...
  22. Replies
    1
    Views
    1,091

    Missing mouse move messages?

    Using VS2005 / VC++8. I have an app that allows drawing with the mouse in a bitmap, which appears as a grid of pixel cells. This looks very much like what you get if you use the VS resource editor to...
  23. Re: Job is not printing when sending to a PS driver enabled printer.Working fine with

    ??? different function names.

    bool RawDataToPrinter(LPSTR szPrinterName, LPBYTE lpData, DWORD dwCount);
    ....
    ....
    RawDataToPrinter2(szPrinter, pData, nTotalLen);
  24. Replies
    1
    Views
    1,206

    Re: microsoft ui automation doubt

    What do you mean by "automation"??
  25. Replies
    14
    Views
    12,506

    Re: Winapi, dialog box procedure problem

    So, you are using the same dialog proc routine for two different dialog windows? I wonder if this is part of the problem.
Results 1 to 25 of 59
Page 1 of 3 1 2 3





Click Here to Expand Forum to Full Width

Featured