Type: Posts; User: tmecham
Search took 0.01 seconds.
November 6th, 2008, 09:10 AM
Trying posting a message to set the focus instead.
November 6th, 2008, 09:00 AM
Just a thought, but have you tried sending the position in terms of screen position or in terms of the winControls parent?
November 6th, 2008, 08:34 AM
Try something like this.
October 19th, 2007, 12:56 PM
Boost has a powerful set of random number generation functions that you could check out.
October 15th, 2007, 04:15 PM
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...
October 15th, 2007, 04:05 PM
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() ?
October 12th, 2007, 02:19 PM
It looks like you have your paramater list out of order.
October 10th, 2007, 02:32 PM
I like to use this button class. It had the options I needed and saved me having to write it myself.
October 10th, 2007, 02:19 PM
I attached a couple of files I have used in the past for serial comms. They are pretty basic, but work.
January 9th, 2006, 02:56 PM
I usually just do this:
DWORD selection = popup_menu->TrackPopupMenu(
November 8th, 2005, 04:48 PM
Could this be the problem?
November 8th, 2005, 04:42 PM
Just use SetItemHeight()
// 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.
November 5th, 2005, 08:08 AM
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...
November 4th, 2005, 01:14 PM
I am doing something similar with the CComboBoxEx. I am not doing multiple states, but am using icons with no text ....
November 3rd, 2005, 07:54 AM
You could just use timers to get your start and stop events. Then use ShellExecuteEx to start programs and TerminateProcess to stop them.
November 2nd, 2005, 04:41 PM
November 1st, 2005, 04:15 PM
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)
November 1st, 2005, 01:13 PM
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...
October 29th, 2005, 08:44 AM
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 ...
October 29th, 2005, 08:29 AM
BOOL PlaySound(LPCSTR pszSound, HMODULE hmod, DWORD fdwSound);
October 29th, 2005, 08:24 AM
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...
October 26th, 2005, 11:05 AM
The Boost Random Number Library provides a vast variety of generators and distributions to produce random numbers having useful properties, such as uniform distribution.
October 6th, 2005, 01:12 PM
Try making your toolbar a member. I am betting it is just going out of scope ...
August 16th, 2005, 03:12 PM
Why don't you just setup an Accelerator to handle Ctrl+C?
August 16th, 2005, 03:07 PM
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...
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!