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

Search:

Type: Posts; User: kkez

Page 1 of 16 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    2
    Views
    4,831

    Re: make a new line when displaying a messagebox

    Use \n:

    MessageBox(hWnd, TEXT("Line\n"), TEXT("Caption"), MB_OK);
  2. Replies
    4
    Views
    1,844

    Re: Change listview style at runtime

    Did you try

    SetWindowLong(listView, GWL_STYLE, GetWindowLong(listView, GWL_STYLE) | LVS_NOCOLUMNHEADER);
  3. Replies
    1
    Views
    732

    Re: OPENFILENAME initialization

    Yes, if both lpstrFile and lpstrInitialDir are empty, the initial folder is the personal folder. Fill the lpstrInitialDir member to set the initial directory. To get your program's folder, see this...
  4. Replies
    8
    Views
    1,073

    Re: How to check directory's presence?

    The easier one: GetFileAttributes() == FILE_ATTRIBUTE_DIRECTORY.
  5. Replies
    6
    Views
    1,446

    Re: Visual Styles - Edit Control

    Can you show a screenshot? Is the edit actually a richedit?
  6. Thread: GetSaveFileName

    by kkez
    Replies
    12
    Views
    2,000

    Re: GetSaveFileName

    The lpstrDefExt member of the OPENFILENAME structure gives you the ability to append an extension if the user doesn't type one.
  7. Replies
    5
    Views
    3,475

    Re: LockResource might be causing problem

    Use "MYRES" (a string, literally) instead of RT_BITMAP. IMHO RT_BITMAP is just a #define for "BITMAP".
  8. Re: ListView control creates 2 threads and other strange behaviour

    Yes i did, and still one thread.


    Are you on windows xp?
  9. Re: ListView control creates 2 threads and other strange behaviour

    I modified the source to let mingw compile it, here's the source and the executable. The resulting exe has only one thread as TaskManager reports.

    As for the coding style, there's just a little...
  10. Replies
    3
    Views
    571

    Re: Bitmap not displaying

    WindowProcedure is called MANY times, and each time the bmpExercising variable is created and not initialized. So what actually happen is that you load the image with LoadImage, but then the handle...
  11. Re: ListView control creates 2 threads and other strange behaviour

    Is your project open-source? If yes, just send me the code and i'll try to see what's happening.
  12. Replies
    2
    Views
    1,874

    Re: Questions about WM_MEASUREITEM

    In my experience, the WM_MEASUREITEM message is sent again when the text of all the items in the menu is changed.


    Of course you can't access it, there's no HMENU member in the...
  13. Re: ListView control creates 2 threads and other strange behaviour

    I think you must do both things, but you can try...


    Well, copying a pointer doesn't affect the efficiency or the speed of your software. And it's more readable, don't you think? :)


    Believe...
  14. Re: ListView control creates 2 threads and other strange behaviour

    Let's clarify then :)


    The NM_CUSTOMDRAW notification is sent whenever (or less) the listview is redrawn. If you read the docs, you'll see that NM_CUSTOMDRAW doesn't ask you to draw anything,...
  15. Replies
    2
    Views
    638

    Re: Enumerating Open Handles

    Handles to what?
  16. Replies
    3
    Views
    496

    Re: Problem with subclassing ListCtrl

    LRESULT ( CALLBACK* OldListCtrlWndProc )( HWND, UINT, WPARAM, LPARAM );
    Although this may be correct, why don't you use WNDPROC as you did with SetWindowLong?

    WNDPROC OldListCtrlWndProc = NULL
  17. Re: How do I do line numbering in a rich edit control

    How and where do you paint that margin? I would do this way:

    handle WM_NCCALCSIZE and make some room in the left non-client area of the window for the margin
    handle WM_NCPAINT and do the...
  18. Re: Calling non-static member functions from within a static member function.

    Both DialogBox and CreateDialog are actually macros that calls respectively DialogBoxParam and CreateDialogParam. The additional parameter is passed along with the WM_INITDIALOG message in the lParam...
  19. Re: Calling non-static member functions from within a static member function.

    Correct.


    No, making the member function static wouldn't change anything, since they wouldn't have the this pointer too. And all the functions can be called from static functions, you just...
  20. Replies
    4
    Views
    834

    Re: Diference between notifications and messages

    I don't quite understand what you mean with "message behavior". You can send messages across threads or processes, and since notifications are sent through WM_NOTIFY, this applies to notifications...
  21. Thread: listview problem

    by kkez
    Replies
    1
    Views
    620

    Re: listview problem

    Please use [/code] at the end and [code] at the beginning of the code. It's impossible to read unformatted code.
  22. Replies
    4
    Views
    834

    Re: Diference between notifications and messages

    Practically speaking, notifications are the "messages" you get through the WM_NOTIFY message. In my experience, notifications are usually sent to the parent window when a child window receives a...
  23. Re: Convert this function to load from Resource rather than File

    No problem. If you want, put a link to the page in the "credits".
  24. Re: Convert this function to load from Resource rather than File

    Sorry for the late answer.

    1) Yes, i just corrected the code.

    2) the second argument depends on how you include the file in the .rc file. FindResource requires the data type - after all, even...
  25. Re: Convert this function to load from Resource rather than File

    Here's mine:
    http://www.winapizone.net/tutorials/winapi/functions/loadimagefromresource.php
Results 1 to 25 of 391
Page 1 of 16 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center