January 4th, 2012 06:44 AM
No, you aren't wrong here.
The built in preview feature of the MFC framework AFAIK depends from the doc/view style.
But nevertheless you can create an "empty" new project using the wizzard and...
December 20th, 2011 03:46 AM
Hi,
I didn't have the time to read your link. But as an idea:
To get to know how to do a print preview:
Create a new project with the wizard, enable the print preview feature. Imlpement...
December 13th, 2011 02:26 AM
Hi,
What is MyDraw ?
Especially: What is inherited from?
Please use code tags (as described in the "Before you post" section)!
To "erase" something drawn generally:
In MS-Windows all...
November 30th, 2011 03:44 AM
In the link: Look what they wrote after "Element access:"
Regards
PA
November 30th, 2011 03:29 AM
Hi,
Could you please give us more information abot what you're trying to achieve (not how)?
No, in the code you've posted you draw some lines of pixels. You neither have a bitmap/image...
November 29th, 2011 12:43 AM
Regarding to Microsoft's MSDN you should use SWP_xxxxx constants as the last parameter of SetWindowPos. SW_xxx constants are for the ShowWindow function.
Regards
PA
November 22nd, 2011 03:23 AM
Hi,
First: You're in the wrong forum. This forum is about Microsoft Visual C++. There is one at codeguru for Non-Visual-C++ Applications which would be more appropiate for your question.
...
November 15th, 2011 07:11 AM
Using jqery you can do it the following way:
The ajax call should look something like this:
$.ajax({
type: "POST",
url: "http://www.yourserver/your_php_file.php",
data:...
November 8th, 2011 01:47 AM
There is no "built-in" functionality for a multi select tree control in MS-Windows.
Subclassing a tree control is a possibility, but it is still much work to do.
Maybe this is helpful:...
November 7th, 2011 08:03 AM
Can you please provide some more info:
Is the bitmap a file or in memory?
Which function are you using to "draw"?
Why do you think that 255 should be red?
AFAIK 255 in a 8bit bmp stands for the...
October 20th, 2011 01:05 AM
As long as you are not going to write a code generator that does not make any sense. A class is an abstraction for (complex) data types.
I guess you want to have indeterminate count of instances of...
October 10th, 2011 02:52 AM
I created a Win32 test application and added 3 controls (using your posted code):
m_hRecipients = CreateWindow(L"COMBOBOX", NULL, WS_VISIBLE | WS_CHILD | WS_BORDER | CBS_DROPDOWN |...
October 10th, 2011 02:06 AM
No, my Outlook 2002 doesn't use a combo box for this purpose. It uses a combination of an edit box and a button exactly as I did suggest:
28885
(Note: This is a German Outlook. "An" = "To",...
October 7th, 2011 07:44 AM
Could you explain as clearly as possible what exactly you want to achieve?
As far as I know now from your posts you want to:
Select something in the list box part of the combo box (That's...
October 7th, 2011 07:37 AM
It is very hard to help if you are not able to answer questions like: What kind of project do you have?
If you so new to Windows programming: Are you sure that handling WM_TAB in a form or a...
October 6th, 2011 03:34 AM
I tried to modify your code from the original post:
{
/* Get index of current selection and the text of that selection. */
TCHAR buffer[200];
int index = SendMessage(m_hRecipients,...
October 6th, 2011 02:30 AM
Can you show the properties (windows styles) of the edit box? Open the resource editor (IDD_ERR) and look at the properties of the edit box.
You open the error dialog without a parent window. That...
October 6th, 2011 02:05 AM
Dear rzdybel,
It is still not clear what the problem is.
By default the TAB keyboard message (and SHIFT+TAB the same way) is handled by the dialog's window procedure.
If you want to handle TAB...
October 6th, 2011 01:10 AM
Yes, you shoud use the [ ] brackets. It's not html here.
October 6th, 2011 01:00 AM
Can you explain what you mean with "binary, not in hex"?
Hex is a numeral system, it represents values. Anyway all the values in your computer are still binaries (they consist of zero's and...
October 5th, 2011 02:42 AM
I played a little bit around with similar code.
What you're trying to achieve seems to be not working since the control resets the contents of the edit box "at the same time" you're changing it.
...
October 5th, 2011 12:59 AM
Dear rzdybel,
What do you want to achieve?
Do you want the TAB key to be working as normal or do you want to handle it by yourself for some special action?
If you now get the WM_GETDLGCODE...
October 4th, 2011 08:19 AM
What you're writing is not correct. Of course the WS_TABSTOP window style works with your combo box. If you have another control in your dialog then TAB will move the caret between the controls and...
September 30th, 2011 02:14 AM
First: Please use code tags when posting code to preserve the indentation!
Second: Please post the correct code. Your code cannot be compiled (at least for some missing semicolons). You wrote you...