To reply to my own message:
On non-NT machines you can use
xSize = GetSystemMetrics( SM_CXVIRTUALSCREEN );
ySize = GetSystemMetrics( SM_CYVIRTUALSCREEN );
For full compatibility, use EnumDisplayMonitors
I have a multiple monitor setup and I want to print a bitmap from an area of the screen on the 2nd monitor.
However, if I use:
xScrn = GetDeviceCaps(hScreenDC, HORZRES);
yScrn = GetDeviceCaps(hScreenDC, VERTRES);
I get only the size of the primary monitor. This means that with my current...
Hi,
I applied a manifest to my Windows application and it looks just great. However, I have a problem in one window with a horizontal scroll bar when I try to *drag* it - I cannot do it!
Heres what happens:
With XP theme:
--------------
I click to drag the scrollbar. I get a single...
Hello,
I have a large application that has been developed over many years.
There are many MFC windows, but there are also many non-MFC windows.
We applied a manifest to the app to get an XP-style. This works fine for all MFC windows. However, for old windows written in C, we have many...
Is there a Windows API that will tell me whether the mouse button is in the process of being pressed (i.e. is currently "down")?
(In a non-MFC app I want to know this before proceeding with an operation)
Hello,
I have an app where the user has the option to block resizing of the columns in a list control.
To do this, I have made the list control handle messages from the embedded header control:
ON_NOTIFY(HDN_BEGINTRACK, 0, OnColumnTrackBegin)
ON_NOTIFY(HDN_DIVIDERDBLCLICK, 0...
Hello,
I have a customer who is using ::PostMessage to "a number of windows".
His app is crashing, just after sending many error messages of the type, ERROR_NOT_ENOUGH_QUOTA (Error code 1816).
Does anyone know what this relates to? Is it something to do with a limit on the message...
I have inherited 2 stored procedures from an Access database:
=====SP1
SELECT [ID]
FROM SP2
WHERE (GC=reqGC) And (UC=reqUC);
=====SP2
SELECT [ID], Count([GroupID]) AS GC, Count([UserID]) AS UC
FROM TABLE1
GROUP BY [ID];
Note that SP1 calls SP2.
I am struggling to translate this logic into an...
I had 2 queries defined in an Access database:
==================================
SELECT UM_Groups_T.*
FROM UM_Groups_T
WHERE (UM_Groups_T.AlertGroup=True)
ORDER BY UM_Groups_T.Name;
==================================
SELECT COUNT(*) AS AlertGroupsCount
FROM UM_AlertGroupsList_Q...
More info:
This is the error message:
com error: -2147217887 Msg: IDispatch error #3105 Description: Les propriétés requises ne peuvent être prises en charge.
Sorry, the string is in French, but maybe the ID will help.
Hello,
I inherited an Access database with a bunch of stored procedures and some working ADO/C++ code to call them.
I upsized the database to an SQL Server database and everything seems to be fine (i.e, all the info has transferred).
I now want to use the same code to call the stored...
I am trying to use ADO connectivity thru C++ to connect to an SQL server database.
I have tried using each of the following connection strings:
Provider=SQLOLEDB.1;Persist Security Info=False;Initial Catalog=.\My_DB.MDF;Data Source=MY_COMPUTER_NAME;User ID=solla;Password=xxx
(where solla is a...
This solution works fine when the user wants to drag the column separator. However, they can still double click on the column separator to achieve their goal!
I haven't yet got a solution for this, although I'm sure its just a case of trapping a different message!
Is it possible to click on a column header AND fix the width of the column at the same time?
Basically, in order to fix the size of the column, I have done something like,
my_list_control.GetHeaderCtrl()->EnableWindow(FALSE);
However, this means that I can no longer click on the column header...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.