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

Search:

Type: Posts; User: krs0

Search: Search took 0.04 seconds.

  1. Re: How to pass a struct to a dialog (winapi)

    I do not use any c++ framework.

    What I settled with, in the end is using a global variable that I can access from my Dialog.
  2. Replies
    7
    Views
    1,930

    Re: How to encapsulate a winapi Dialog in a class?

    2. Parts of code I have from net examples and I was trying to quickly make them work. I see now what you mean with error checks.
  3. Re: How to pass a struct to a dialog (winapi)

    OK. Now I can access struct's members when I catch WM_INITDIALOG in my custom onInitDialog().

    I still do not understand how to access/pass this struct from/to onButtonClicked().
  4. Re: How to pass a struct to a dialog (winapi)

    I think I am missing something basic here. Maybe I describe what I am trying to do:

    I want to display a dialog with 2-3 buttons and some text. When the user clicks one of the buttons I want to...
  5. [RESOLVED] How to pass a struct to a dialog (winapi)

    I want to pass some parameters to a dialog. I am trying to pass a struct as LPARAM in CreateDialogParam.

    How to access this structure from ONOK for example?

    Code:

    struct DlgParam{...
  6. Replies
    7
    Views
    1,930

    Re: How to encapsulate a winapi Dialog in a class?

    1. Pane(&hDlg, hInstance, nCmdShow);
    This is how I want to create and display the dialog. I put the handler in hDlg so that I can use it later in IsDialogMessage(hDlg, &msg).

    2. Can you post a...
  7. Replies
    7
    Views
    1,930

    How to encapsulate a winapi Dialog in a class?

    I have made a simple Pane class so that I can encapsulate a winapi Dialog.
    I call it as:

    Here the code I have, but it displays no dialog.

    Here is what I do in main:


    Pane(&hDlg,...
  8. Re: Displaying an icon in a simple dialog with winapi

    Yes the IDC_STATIC was not ok. (probably because it was before reused by a static text control that I've deleted meantime). I've changed the control's ID as you suggested to ID_STATIC_ICON and it...
  9. Re: Displaying an icon in a simple dialog with winapi

    The name was not ok. Ty for your help. (I had a static text box with IDC_STATIC, I deleted it and thought I could reuse the ID, something went wrong there).
  10. [RESOLVED] Displaying an icon in a simple dialog with winapi

    I made a dialog to have a customizable msgbox. (custom icon, custom caption on buttons).

    This is how I try to display an icon on the dialog but it is not working. Can anyone help?

    HICON hIcon...
  11. Replies
    4
    Views
    859

    Re: Making a "list box"

    The concepts are familiar to me. The problem I have is putting them into practice :D.
  12. Replies
    4
    Views
    859

    Re: Making a "list box"

    I am using SDL.

    Was thinking to make a stl::list with all possible entries and display only a part of them. When I click one of the scroll buttons I make the corresponding edge element "invisible"...
  13. Replies
    2
    Views
    1,211

    Re: Making a "list box"

    I do not know why it is unvalid. Here a link to an example of what I want to make.

    http://i.imgur.com/VwXwJ.jpg
  14. Replies
    4
    Views
    859

    Making a "list box"

    I want to make something like this for a game:

    30509

    It is a "list box" that has 2 scroll buttons (scroll bar not needed). One button push, "scrolls" the list one entry.

    Needs to run...
  15. Replies
    2
    Views
    1,211

    Making a "list box"

    I want to make something like this for a game:

    30507

    It is a "list box" that has 2 scroll buttons (scroll bar not needed). One button push, "scrolls" the list one entry.

    Needs to run...
Results 1 to 15 of 16





Click Here to Expand Forum to Full Width

Featured