Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: solla
  • Order by date
  1. solla

    Using GetDeviceCaps with multiple monitors

    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
  2. solla

    Using GetDeviceCaps with multiple monitors

    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...
  3. solla

    Incorrect WM_HSCROLL messages sent with Windows Themes

    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...
  4. solla

    Selectively disabling the XP-style manifest

    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...
  5. solla

    Detecting whether mouse button is pressed

    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)
  6. solla

    Handling Double CLicks from CHeaderCtrl

    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...
  7. solla

    Error ERROR_NOT_ENOUGH_QUOTA

    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...
  8. solla

    Combining 2 Stored Procedures into 1

    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...
  9. solla

    Incorrect syntax in stored procedure that calls another?

    Yeah, you're right. What I'd done was almost a blind copy of the Access syntax. Thanks very much.
  10. solla

    Incorrect syntax in stored procedure that calls another?

    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...
  11. solla

    Calling SP in DB upsized from MS Access

    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.
  12. solla

    Calling SP in DB upsized from MS Access

    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...
  13. solla

    ADO Connectivity/C++ Login Problem

    As I suspected - rookie error. :~/ Thanks very much
  14. solla

    ADO Connectivity/C++ Login Problem

    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...
  15. solla

    Sorting a "locked" column in a CListCtrl

    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!
  16. solla

    Sorting a "locked" column in a CListCtrl

    For reference, the message that corresponds to the magic number is WM_MOUSEMOVE
  17. solla

    Sorting a "locked" column in a CListCtrl

    Thanks very much - that works a treat. However, which message does 512 correspond to?
  18. solla

    Sorting a "locked" column in a CListCtrl

    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...

Part and Inventory Search

Back
Top