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

Search:

Type: Posts; User: Marco Moscato

Page 1 of 12 1 2 3 4

Search: Search took 0.04 seconds.

  1. Replies
    2
    Views
    759

    Go to web page:...

    Go to web page:
    http://www.annoyances.org/exec/forum/win2000/r1027432033
  2. At first sight, it would be a GDI problem...

    At first sight, it would be a GDI problem...
  3. Replies
    11
    Views
    2,006

    I too use FILE* instead of CFile...

    I too use FILE* instead of CFile...
  4. Replies
    2
    Views
    707

    The answer is quite simple. You have to subclass...

    The answer is quite simple.
    You have to subclass the CStatic class (e.g. CMyStatic), then you can associate your control to a member variable of type CMyStatic.
    Then you have to handle the...
  5. Replies
    4
    Views
    766

    Use the API function DWORD GetVersion(VOID)...

    Use the API function
    DWORD GetVersion(VOID)
    You'll find more info in MSDN.
  6. Replies
    5
    Views
    761

    Subclass

    You can subclass the CButton class (e.g. CMyButton), and handle the event BN_CLICKED.
    Then you can create your button (method Create) and you have only to associate it to CMyButton class...!!!
  7. Thread: CString

    by Marco Moscato
    Replies
    4
    Views
    684

    Re: CString

    Another way is to use CString method GetBuffer()...

    Bye!
    Marco

    THANKS ARE WELCOME, RATINGS MUCH MORE!
  8. Replies
    7
    Views
    1,310

    Re: MouseOver-function?

    Hi!
    Do what said Mr. Natarajan. Then in OnMouseMove you can use ChildFromWindowPoint to test if the mouse cursor is on a child control (whose you know the handle).

    Bye!
    Marco

    THANKS ARE...
  9. Re: What is wrong with this source code?

    Do you know that you can give points for answers?
    It will help you to receive more and faster answers!

    Bye!
    Marco

    THANKS ARE WELCOME, RATINGS MUCH MORE!
  10. Re: What is wrong with this source code?

    The promblem is that you use only aa to store you values coming from stream. When you seta[m]=aa

    you don't allocate any memory space for a[m], but a[m] is only a pointer, and you are giving to...
  11. Re: How to send a modeless dialog behind of main dialog box?

    When you create the modeless dialog, set no parent dialog (NULL in pParentWnd).

    Bye!
    Marco

    THANKS ARE WELCOME, RATINGS MUCH MORE!
  12. Replies
    4
    Views
    616

    Re: MessageBoxes

    Use AfxMessageBox("Your text", MB_OKCANCEL).
    It will returns IDOK or IDCANCEL.

    Bye!
    Marco

    THANKS ARE WELCOME, RATINGS MUCH MORE!
  13. Replies
    4
    Views
    660

    Re: MessageBoxes

    Use AfxMessageBox("Your text", MB_OKCANCEL).
    It will returns IDOK or IDCANCEL.

    Bye!
    Marco

    THANKS ARE WELCOME, RATINGS MUCH MORE!
  14. Re: What is wrong with this source code?

    Hi!
    The problem is that you don't allocate any space for your string array...
    when you writea[m]=aa

    you give to a[m] the address of aa...
    so, after the "while" cicle, all your a[m] are pointing...
  15. Replies
    3
    Views
    722

    Re: Open and Save As Dlg Boxes

    Hi!
    Use the CFileDialog member "m_ofn", that is a structure of type OPENFILENAME...
    See it on MSDN.

    Bye!
    Marco

    THANKS ARE WELCOME, RATINGS MUCH MORE!
  16. Thread: library

    by Marco Moscato
    Replies
    4
    Views
    624

    Re: library

    If you use WindowsNT or Windows2000, you can use in your function the SDK function ::GetUserName(), which gives you the name of the user currently logged onto the system, and prevent him to use your...
  17. Replies
    1
    Views
    528

    Re: CStatic with colored text

    By handling OnCtlColor() event on the dialog in which your CStatic is.
    HBRUSH CProvaCStaticColorDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
    {
    HBRUSH hbr = CDialog::OnCtlColor(pDC,...
  18. Replies
    2
    Views
    3,980

    Re: PostMessage and Windows Style

    To enable (hWnd is your window's handle)

    ::PostMessage(hWnd,WM_ENABLE,(WPARAM)TRUE,0)



    to disable:

    ::PostMessage(hWnd,WM_ENABLE,(WPARAM)FALSE,0)
  19. Replies
    2
    Views
    564

    Re: How to use ATL ?

    Hi!
    you have to import ".tlb" file (use the directive #import in your .idl) of ATL control...

    Bye!
    Marco

    THANKS ARE WELCOME, RATINGS MUCH MORE!
  20. Replies
    10
    Views
    1,496

    Re: itoa?

    Hi!

    _itoa() and itoa() are the same function.
    However you can't use itoa() on UNIX.
    Then you can write your version of itoa()...
    There is another possibility: instead of itoa(), use...
  21. Re: *Getting a bitmap to move on a dialog* (NEWBIE I am!)

    Hi.
    You have to:
    1) use threads (and not timers) to make your images move on the dialog;
    2) don't use CStatic to contain your bitmaps: draw directly in OnPaint() function in your dialog class,...
  22. Thread: Direct3D

    by Marco Moscato
    Replies
    3
    Views
    666

    Direct3D

    Is there anybody who knows where can I find a good Direct3D's tutorial?
    I'd like to learn anithing about this...
    Thank you in advance.

    Bye!
    Marco

    THANKS ARE WELCOME, RATINGS MUCH MORE!
  23. Replies
    4
    Views
    700

    Re: System Menu

    Johan,
    do you use MFC or ATL?


    Bye!
    Marco

    THANKS ARE WELCOME, RATINGS MUCH MORE!
  24. Replies
    4
    Views
    700

    Re: System Menu

    Yes, Johan.
    You have to handle the CWnd's GetSystemMenu().
    You'll find all you need in MSDN.


    Bye!
    Marco

    THANKS ARE WELCOME, RATINGS MUCH MORE!
  25. Re: How to check out whether a file is existing?

    I did wrong. It was fopen(), not fread().

    Bye!
    Marco

    THANKS ARE WELCOME, RATINGS MUCH MORE!
Results 1 to 25 of 286
Page 1 of 12 1 2 3 4





Click Here to Expand Forum to Full Width

Featured