|
I saw that some (new) function definitions in Winuser.h are "guarded" by:
#if (_WIN32_WINNT >= 0x0400) || (_WIN32_WINDOWS > 0x0400)
...
#endif
I've also noticed that afx.h sets _WIN32_WINDOWS to 0x0500. Can anybody tell me more about these macros ?
I vote pro drink
|
|
|
|
|
_WIN32_WINDOWS tells what version of OS you are running. 0x0500 means Windows 2000.
If you want to target systems such as NT4 you would set _WIN32_WINNT = 0x0400.
You may also need to set _WIN32_IE appropriately for some IE features, like Active Desktop.
Some features are not available on lower systems so they are placed in the "guarded" section to prevent their use.
|
|
|
|
|
Hi,
Is there any way to print a window and its contents onto the printer just like it looks on the screen without capturing its bitmap? What does WM_PRINT do?
Krishnan
|
|
|
|
|
Hi,
Is there any way to print a window and its contents onto the printer just like it looks on the screen without capturing its bitmap? What does WM_PRINT do?
Krishnan
|
|
|
|
|
Hi,
Is there any way to print a window and its contents onto the printer just like it looks on the screen without capturing its bitmap? What does WM_PRINT do?
Krishnan
|
|
|
|
|
Hi,
Is there any way to print a window and its contents onto the printer just like it looks on the screen without capturing its bitmap? What does WM_PRINT do?
Krishnan
|
|
|
|
|
Hi
I've created an MFC based-dialog app, when i hit Enter the dialog closes. how can i prevent this?
and how can i change the selection mark of a CListCtrl?
thanks
|
|
|
|
|
Your dialog box cloese because the when the app is initalized it has focus on the "OK" button and you have not specified any other function with this button. so there are 2 ways to do this: one chage the ID_OK of the "OK" button or set focus on any other control using setfocus
hope it helps
Rj2
|
|
|
|
|
You could also uncheck the default button property of the OK button.
|
|
|
|
|
but i deleted the OK button....
???
|
|
|
|
|
Yes, but OnOK is still called when you press it. If you deleted the Cancel button, Escape will still call OnCancel. To defeat this behaviour, override the methods before deleting the buttons and comment out the calls to the base class. If you wanted the OK button to work but not the return key you can do this:
GetAsyncKeyState(VK_RETURN); // Clear buffer
if (GetAsyncKeyState(VK_RETURN)) return; // Don't execute if we got here via the return key
For this project, put a new IDOK button on, then override the method, and delete it again.
Christian
#include "std_disclaimer.h"
The careful application of terror is also a form of communication.
Eagles may soar, but weasels don't get sucked into jet engines.
|
|
|
|
|
Where I can find good AVI animations for my projects. I mean small AVI-s for, searching files, sending data , change folder and etc.
|
|
|
|
|
I have created a onctlcolor function that changes the color of my labels,edit boxes,listboxes and hopfully a combobox.
there does not seem to be a settextcolor function available with the combobox. Is there another way to change the color of a combobox?
thankyou
|
|
|
|
|
Hello,
I recently found out about the customization file for debugging and was wondering if anyone has done anything for STL - or any for that matter!
Thanks!
Derek
|
|
|
|
|
Does anybody know a way to resize a CFormView derieved class, so that it exactly encloses the dialog resource and no scrollbar are visible?
I tried it on CWnd::SetWindowPos(), but this does only change the size of the View and didn't affect the frame.
--------------------------------------------------
"Pseudocode is code to demonstrate a concept, not designed to be run.
Like certain Microsoft software. "
|
|
|
|
|
I think you should control the size of parent frame to avoid scrollbars. Use WM_GETMINMAXINFO for that.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
Does anybody here have faced any problem using Microsoft Visual C++ 6.0 in Windows 2000. It gives all sorts of strange probs like. Upon saving a file it sometime says 'File being used by another process' and some other.
Anyone...
|
|
|
|
|
I use it under W2000 every day with no problems, so the problem is with your setup somewhere. I use SP5.
Christian
#include "std_disclaimer.h"
The careful application of terror is also a form of communication.
Eagles may soar, but weasels don't get sucked into jet engines.
|
|
|
|
|
I've got the same problem, annoying at times, but not so much that I'm driven to find the problem. If anyone else finds an answer that would be great.
|
|
|
|
|
Hello
how can i create two threads that use the same function using the AfxBeginThread()? (i need them both work simultaneous)
can i write something like this:
...
AfxBeginThread(Function, ...)
AfxBeginThread(Function, ...)
...
thanks
|
|
|
|
|
Yes.
You will get two threads running, each with "Function" as its main.
|
|
|
|
|
Maybe works, maybe not.
I would advise you to move Function() into a class (CWinThread derived) and make instances of the class for every thread. There is a second overload for AfxBeginThread, not taking a function pointer as first param, but a CWinThread-object.
Look at http://www.codeproject.com/threads/extended_thread.asp
it demonstrates a similar approch
mfg HintiFlo
|
|
|
|
|
Does anybody here have faced any problem using Microsoft Visual C++ 6.0 in Windows 2000. It gives all sorts of strange probs like. Upon saving a file it sometime says 'File being used by another process' and some other.
Anyone...
|
|
|
|
|
I want to know how to insert jpg images into the resource. because I am unable to place any images into html file
|
|
|
|
|