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

Search:

Type: Posts; User: ghovis

Page 1 of 18 1 2 3 4

Search: Search took 0.10 seconds.

  1. Re: URLDownloadToFile Hangs When Target Not Available

    Sorry for my choice of words "target URL does not exist", I see this has ambiguous meaning. The state of the string variable is not my issue.

    My issue occurs when the file object (referenced by...
  2. URLDownloadToFile Hangs When Target Not Available

    Hello,

    I'm using URLDownloadToFile along with IBindStatusCallback. When I attempt a download, and the target URL exists, all works well. But, when the target URL does not exist,...
  3. Replies
    9
    Views
    982

    Re: set mouse to button on dialog

    In the laser software I have used, once the beam is turned on, a unique dialog pops up. It warns that the laser is "hot", and the only button on the dialog is a "Cancel" or "Stop" button. This...
  4. Replies
    9
    Views
    982

    Re: set mouse to button on dialog

    Not sure if it's the "best" way, but have you tried "SetCursorPos" when the dialog initializes? You'll have to determine the location of the button first (GetWindowRect maybe). Hope this helps.
  5. Replies
    5
    Views
    803

    Re: Linux "Window" Basics

    This is looking to be the best option; have downloaded QT and will give it a go. Thanks.
  6. Replies
    5
    Views
    803

    Re: Linux "Window" Basics

    Thanks Lindley, I'll have a look at this.


    I do, and I've used it to resize and crop images before, but never thought of it as a UI tool. I'll see if I can find some examples of how to do this....
  7. Replies
    5
    Views
    803

    Linux "Window" Basics

    Hello,

    I have a small project on Linux (CentOS), and I need to open a "window" to do display a BMP image. Really, that's all I'm looking to do at this point. I've searched here and on Google for...
  8. Replies
    4
    Views
    1,135

    Re: How to lock a folder ?

    Not sure if this is what you're looking for, but SetFileAttributes may be a good starting point.
  9. Replies
    9
    Views
    1,774

    Re: Safely Zero 2D Array

    Thanks to all for helping on this.
  10. Replies
    9
    Views
    1,774

    Re: Safely Zero 2D Array

    OK, great input! Just to make sure I understand; in the SPECIFIC case where I have a 2-D array member variable with known dimensions, like:


    // in the .h file

    double m_xval[6][8];


    // in...
  11. Replies
    9
    Views
    1,774

    Re: Safely Zero 2D Array

    Thanks Mr. Wizard, glad I asked.

    So it's just single-dimensional arrays (vectors) that are contiguous in memory (e.g. xval[10])?
  12. Replies
    9
    Views
    1,774

    [RESOLVED] Safely Zero 2D Array

    Pretty basic question, but is it safe to use ZeroMemory this way to initialize a 2-D array?



    double xval[6][8];

    ZeroMemory((PVOID)&xval[0][0],6*8*sizeof(double));

    // rather than
    for(i=0;...
  13. Replies
    6
    Views
    3,146

    Re: Multiline CEdit Flicker

    I did, but after changing the text an update is required, e.g. Invalidate(FALSE), to make the changes display. That actually reduced the flicker, but didn't eliminate it. Thanks!
  14. Replies
    6
    Views
    3,146

    Re: Multiline CEdit Flicker

    Hundreds of data values (text formatted numeric values) are updated, and only 5 or 6 labels are not.
    Good suggestion. Since I have already formatted the data, I'm back to looking at CDC-DrawText to...
  15. Replies
    6
    Views
    3,146

    Re: Multiline CEdit Flicker

    Thanks for the reply VictorN. I have seen/used the SetSel type methods, however in this case the majority of text has to be updated on each cycle. Perhaps the edit control isn't the best approach...
  16. Replies
    6
    Views
    3,146

    Multiline CEdit Flicker

    I've read, used, and even posted on how to control flicker. However, I'm a bit stumped on this one.

    To display some frequently-updating data, I created a simple modeless dialog that has a large...
  17. Replies
    1
    Views
    1,112

    Re: Better error checking with sscanf

    Perhaps some info here will help ...
    http://www.codeguru.com/forum/showthread.php?t=75106
  18. Replies
    15
    Views
    1,991

    Re: Access function in view from property page

    Since its an SDI, would it be safe to use the top level frame to find the view, like:
    CFrameWnd* pWnd = (CFrameWnd*)AfxGetMainWnd();
    CFrameWnd* pFrame = pWnd->GetActiveFrame();
    ...
  19. Replies
    5
    Views
    5,814

    Re: Question about Dialog Font in RC File

    Excellent info. Thanks hoxsiew.
  20. Replies
    5
    Views
    5,814

    Re: Question about Dialog Font in RC File

    JohnCz and hoxsiew, thanks for the information.

    JohnCz, your "mapping" discussion sort of explains my observations which caused me to start this thread. The first block of code I posted was...
  21. Re: Scroll window so control with focus is visable

    These may have some useful info:

    http://www.codeguru.com/forum/showthread.php?t=441946

    http://www.codeguru.com/forum/showthread.php?t=281718
  22. Replies
    5
    Views
    5,814

    Question about Dialog Font in RC File

    I noticed that when building dialogs using the VS resource editor, sometimes the dialog's definition in the .rc file will include additional parameters following the FONT designation, for example:
    ...
  23. Re: Transparent dialog with non-transparent controls

    I just went through a similar exercise for fun, sort of simulating a 'Vista' effect, but I ended up in the same place you did. I can't be sure, but the answer may be in this CodeProject article. ...
  24. Replies
    3
    Views
    820

    Re: NonClient Area Icon Problem

    This worked perfectly. Also, I kind of chuckle at myself for asking "how to tell the mouse leaves the NC area" and the answer is WM_NCMOUSELEAVE - probably should have figured that one out, but we...
  25. Replies
    3
    Views
    820

    NonClient Area Icon Problem

    Hello,

    I'm drawing a simple icon in a window's titlebar area (kind of like a minimize icon). I do the drawing with BitBlt in OnNcPaint and use OnActivate to change the appearance of the icon...
Results 1 to 25 of 442
Page 1 of 18 1 2 3 4





Click Here to Expand Forum to Full Width

Featured