|
|
|
GetCursorPos fails with "Not enough Storage"
Wed, 2 Jul 2008 07:44:33 -0700 (PDT)
::GetCursorPos failed with rc = 8: Not enough storage is available to
process this command in the following code:
POINT pt = {0};
if (!::GetCursorPos(&pt))
{
//make a stink ...
}
Seriously though, how much storage is required to figure out where the
mouse cursor is located :-)
I Googled but could no ...
|
Problem: Activation of application through left click on iconized
application on system tray
Tue, 1 Jul 2008 00:15:43 -0700 (PDT)
Hello,
I have an MFC VC++ 6.0 application, where I work on for some months.
Somehow the appplication window cannot be activated anymore, when
iconized
(minimized) on the system tray. Left clicking on the minimized
appplication icon does nothing anymore.
Only right clicking and selecting "restore" on the syst ...
|
EM_STREAMOUT: Unhandled exception in msftedit.dll (includes sample
Sun, 29 Jun 2008 21:21:00 -0700
I'm just trying to stream out text. This very simple sample streams the text
out and then crashes. I'm probably missing something really obvious but I
can't see it.
#ifndef WIN32
#define WIN32
#endif
#ifndef _DEBUG
#define _DEBUG
#endif
#ifndef _WINDOWS
#define _WINDOWS
#endif
#ifndef _UNICOD ...
|
Problem about treeview control
Sat, 28 Jun 2008 18:19:00 -0700
Dear all,
I encountered a strange problem when programming with WTL.
I've got a treeview control in a window.
If the window is put in another window,
after editting the treeview control, I can finish editting the control with
"return" entered.
But if the window is put in a dialog box, I can't finish editting ...
|
Re: GDI functions and scaling - Can't get it to work .... W98 <-> XP differences ?
Sat, 28 Jun 2008 12:17:28 +0200
Hello all,
I'm trying to scale stuff that GDI32.DLL can draw, and have troubles with
it.
I've tried many combinations, but was, on a W98se machine, not able to get
it to work. However, while working on a XP machine I got something that
seemed to work as intended :
call SetMapMode,[@@hDC],MM_ANISOTROPI ...
|
Tooltip disappears after showing once
Thu, 26 Jun 2008 14:01:04 -0500
Hi all,
I have a simple dialog with a button (the id is 1000). I am on XP and the
manifest file is included with the executable. I tried adding a tooltip to
the button using the following code. The problem I have is that
1) If the user clicks/right-clicks the button, the tooltip will not show
again.
2) ...
|
Portable C++ GUI framework
Thu, 26 Jun 2008 21:28:35 +0300
I am looking for a decent portable C++ (meaning C++ API, not C) GUI
framework that works both on Linux and Windows, so as to study and learn
it. That is, there should be at least one good decent book about it.
One option is QT. QT licensing however, is to pay for the QT framework,
for running non GPL applica ...
|
|
|
GDI functions and scaling - Can't get it to work ....
Thu, 26 Jun 2008 20:04:39 +0200
Hello All,
I'm drawing some things (lines, circles, etc) which are described in a
(binary) file straight on the DC of my main window, and that part works o.k.
But for some reason I can't get the drawn items to scale.
I've tried to use SetWindowExtEx with or without SetViewportExtEx (without
there was some ...
|
Sizing Tooltips
Wed, 25 Jun 2008 14:34:38 -0700 (PDT)
I have a WTL Dialog application that has a tool tips class. For some
reason, despite the fact that I am setting TTM_SETMAXTIPWIDTH to a -1,
I have tooltips that are getting cut off.
Searching around I found in MSDN the article on "Implementing
Multiline ToolTips". If I understand it correctly, to implement
mu ...
|
.NET DateTimePicker and WM_NOTIFY
Tue, 24 Jun 2008 19:45:09 -0700 (PDT)
I'm a bit new to the Windows API, and I'm looking for help with how to
use it.
When looking through the source code of the .NET Framework
DateTimePicker control, I found it creates an instance of the
DateTimePicker common control using Windows API functions. When I try
to trap the WM_NOTIFY message by overri ...
|
|
|