Search:
Type: Posts; User: tmecham
Search:
Search took 0.08 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.
form2.SetWindowPos(&CWnd::wndTopMost,0,0,0,0,SWP_NOSIZE|SWP_NOMOVE);
form1.SetWindowPos(&CWnd::wndTopMost,0,0,0,0,SWP_NOSIZE|SWP_NOMOVE);
-
October 19th, 2007, 11:56 AM
Boost has a powerful set of random number generation functions that you could check out.
http://www.boost.org/libs/random/index.html
-
October 15th, 2007, 03: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, 03: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, 01:19 PM
It looks like you have your paramater list out of order.
TCHAR szPath[MAX_PATH];
if(SUCCEEDED(SHGetFolderPath(NULL,
CSIDL_PROGRAM_FILES,
...
-
October 10th, 2007, 01:32 PM
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
-
October 10th, 2007, 01: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:
CPoint pt;
::GetCursorPos(&pt);
DWORD selection = popup_menu->TrackPopupMenu(
TPM_LEFTALIGN|TPM_RIGHTBUTTON|TPM_NONOTIFY|TPM_RETURNCMD,
pt.x,
pt.y,
-
November 8th, 2005, 04:48 PM
Could this be the problem?
http://support.microsoft.com/kb/q187988/
Good Luck!
-
November 8th, 2005, 04:42 PM
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.
-
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 ....
CImageList image_list;
image_list.Create(150,16,ILC_COLOR4,7,1);...
-
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
http://islam.about.com/library/glossary/bldef-eidmubarak.htm
-
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)
{
LPNMTVDISPINFO...
-
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, 07: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 ...
int get_selected_index()
{
...
-
October 29th, 2005, 07:29 AM
#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
-
October 29th, 2005, 07: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, 10: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, 12:12 PM
Try making your toolbar a member. I am betting it is just going out of scope ...
GL
-
August 16th, 2005, 02:12 PM
Why don't you just setup an Accelerator to handle Ctrl+C?
-
August 16th, 2005, 02: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
|