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

Search:

Type: Posts; User: tmecham

Page 1 of 6 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,163

    Re: Set Focus on Button Control.

    Trying posting a message to set the focus instead.
  2. Replies
    1
    Views
    2,320

    Re: WM_MOUSE move question

    Just a thought, but have you tried sending the position in terms of screen position or in terms of the winControls parent?
  3. Thread: SetWindowPos

    by tmecham
    Replies
    1
    Views
    1,538

    Re: SetWindowPos

    Try something like this.



    form2.SetWindowPos(&CWnd::wndTopMost,0,0,0,0,SWP_NOSIZE|SWP_NOMOVE);
    form1.SetWindowPos(&CWnd::wndTopMost,0,0,0,0,SWP_NOSIZE|SWP_NOMOVE);
  4. Replies
    4
    Views
    667

    Re: 2D Random Numbers

    Boost has a powerful set of random number generation functions that you could check out.

    http://www.boost.org/libs/random/index.html
  5. Replies
    7
    Views
    859

    Re: CTabCtrl initiating Dialog problem

    The problem is if the issue is an MFC bug/feature in which case you might have to brute force the init. I can see not calling OnInitDialog() but you could create a base class with a MyInit() or...
  6. Replies
    7
    Views
    859

    Re: CTabCtrl initiating Dialog problem

    If the OnInitDialog() isn't behaving like you would expect, is there any disadvantage to just calling m_Dialog.OnInitDialog() in you CreateContents() function after you have called Create() ?
  7. Replies
    1
    Views
    543

    Re: Problem retrieving ProgramFiles path

    It looks like you have your paramater list out of order.



    TCHAR szPath[MAX_PATH];

    if(SUCCEEDED(SHGetFolderPath(NULL,
    CSIDL_PROGRAM_FILES,
    ...
  8. Replies
    2
    Views
    554

    Re: How to create transparent bitmap

    I like to use this button class. It had the options I needed and saved me having to write it myself.

    http://www.codeproject.com/buttonctrl/FooButton.asp

    Good Luck
  9. Replies
    6
    Views
    928

    Re: Serial Communication (WriteFile)

    I attached a couple of files I have used in the past for serial comms. They are pretty basic, but work.
  10. Replies
    4
    Views
    509

    Re: OnContextMenu in a doc/view

    I usually just do this:



    CPoint pt;
    ::GetCursorPos(&pt);
    DWORD selection = popup_menu->TrackPopupMenu(
    TPM_LEFTALIGN|TPM_RIGHTBUTTON|TPM_NONOTIFY|TPM_RETURNCMD,
    pt.x,
    pt.y,
  11. Replies
    2
    Views
    485

    Re: CPropertySheet tab key not working

    Could this be the problem?

    http://support.microsoft.com/kb/q187988/

    Good Luck!
  12. Replies
    6
    Views
    699

    Re: CComboBox question...

    Just use SetItemHeight()

    MSDN Code:


    // The pointer to my combo box.
    extern CComboBox* pmyComboBox;

    // Set the height of every item to be the
    // vertical size of the item's text extent.
  13. Replies
    9
    Views
    885

    Re: CComboBoxEx bitmaps

    When I change the size of my combo box, I guess I am seeing the same thing. It's just that my bitmaps are a little wider than my combo box, so I don't see the empty string being highlighted. So I...
  14. Replies
    9
    Views
    885

    Re: CComboBoxEx bitmaps

    I am doing something similar with the CComboBoxEx. I am not doing multiple states, but am using icons with no text ....



    CImageList image_list;
    image_list.Create(150,16,ILC_COLOR4,7,1);...
  15. Thread: Task starting

    by tmecham
    Replies
    3
    Views
    368

    Re: Task starting

    You could just use timers to get your start and stop events. Then use ShellExecuteEx to start programs and TerminateProcess to stop them.
    ...
  16. Thread: Eid Mubarak

    by tmecham
    Replies
    13
    Views
    1,047

    Re: Eid Mubarak

    http://islam.about.com/library/glossary/bldef-eidmubarak.htm
  17. Replies
    4
    Views
    1,880

    Re: renaming tree control item ?

    Can you do a check to see that the selected item is the same as the item that you are trying to edit?



    void OnTvnBeginLabelEdit(NMHDR *pNMHDR, LRESULT *pResult)
    {
    LPNMTVDISPINFO...
  18. Thread: test TAPI 3

    by tmecham
    Replies
    3
    Views
    729

    Re: test TAPI 3

    I attached a test app I was playing with last year ... I was trying to establish a call and play a wav file ... I haven't had time to play with it since, but it will at least be a starting place for...
  19. Replies
    2
    Views
    511

    Re: Get index of an item in a TreeCtrl

    All you have to do is get the parent of the currently selected item and then just index down the child list of the parent. It would be something like this ...



    int get_selected_index()
    {
    ...
  20. Replies
    4
    Views
    973

    Re: Playing wavesound or midi using MFC

    #include "mmsystem.h"

    BOOL PlaySound(LPCSTR pszSound, HMODULE hmod, DWORD fdwSound);

    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/_win32_playsound.asp
  21. Replies
    3
    Views
    910

    Re: Getting servers for sending mail via SMTP

    Well, how do you know who the message is coming from? Either it is predefined, in which case you should already know the SMTP server or you need to get a "From" address from the user at which time...
  22. Replies
    16
    Views
    1,723

    Re: random number that doesn't repeat?

    The Boost Random Number Library provides a vast variety of generators and distributions to produce random numbers having useful properties, such as uniform distribution.
    ...
  23. Thread: ToolBar doubt

    by tmecham
    Replies
    2
    Views
    390

    Re: ToolBar doubt

    Try making your toolbar a member. I am betting it is just going out of scope ...

    GL
  24. Replies
    12
    Views
    1,922

    Re: How to detect ctrl-c pressed?

    Why don't you just setup an Accelerator to handle Ctrl+C?
  25. Replies
    7
    Views
    547

    Re: ActiveX control

    I have done several different things to get around this depending on what the control allows and what functionality you need from the control. A lot of controls have a right click event you can...
Results 1 to 25 of 149
Page 1 of 6 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