I'm hooking the textout messages being sent, and when the text message for a disabled button is sent, calling WindowFromDC on the hdc sent in the message returns null. This only seems to happ...
I am using WH_GETMESSAGE hook to modify/map the WM_CHAR. For example (just an example!) if user enter 'a' I will send "Aa".
Here is sample code from my callback function:
LRESULT CALLBAC...
foldeditproc = (WNDPROC) ::SetWindowLong((HWND) (m_hedit), GWL_WNDPROC, (LONG) OnEditProc);
I subclass editbox, (in an ATL control)
I do not use CContainedWindow etc. for a reason. so I am
usi...
Does anyone know how to use the cards dll or where I can find information on using it? we need to write some simple card games and it seems that the basic functionality is there, if we can ju...
What is the API and/or procedure to PROGRAMMATICALLY bind and unbind network protocols to a specific network adapter?
An example would be nice but I'll take whatever I can get.
Hi.
I need to write a code that can merge two bmp files.
I mean : I have two bmp files : bmp1.bmp , bmp2.bmp and
I want to get third bmp file bmp1_bmp2.bmp that will look like as
_______...
If somebody can explain why when we are pressed twice on a owner draw style button with a short period of time parent window get only one command message.
My App has a separate DLL for all resources. The DLL has 4 configurations, Debug+Release for German and English(US).
When compiled, the DLLs are nearly identical, because AFX_RESOURCE_DLL bec...
if I have two unsigned long values? How can i add them up together and reflec the total in a ULARGE_INTEGER variables
unsigned long a = 3333333333
unsigned long b = 3333333333
unsigned lo...
Hi,
Using ATL, I got a webbrowser control on my window. And I have block of memory containing an HTML file. Now how do I make the webbrowser display this HTML ?
I know I can save the HTM...
Here's the code:
...
<include ddraw.h>
...
void Test()
{
HRESULT hr;
HINSTANCE hinst;
FARPROC dgco;
IClassFactory*pcf;
hinst=LoadLibrary("ddraw.dll");
if (hinst) ...
i am trying to play an avi file.
I manage to start mci and play the file.
However, i want Mci to close down automatically when it has finished playing the file.
I done the following
if (m_vide...
I've downloaded some samples on MSDN online library about the TAPI 3.0. However, I have no tapi3.dll, tapi3.h and the type library of tapi3 so that I cannot compile and test them. I've alrea...
I have stumbled my way through getting this code to work.. Mostly guess work and looking at someone else's code on this subject. I am confused about how things are working. I have several q...
I need to create a bitamp in memory, and draw to it myself without using GDI. I can create the bitmap and allocate its buffer using the following code:
ZeroMemory(&bi,sizeof(BITMAPINFOHEA...
Hi,
under some circumstances we have a problem when
calling CreateFile(): the return value
is ERROR_INVALID_HANDLE (6).
We guess in that case we have a environment problem,
but we don't kno...
I need some tips on tracking memory (and handle) usage in a DLL. Our system uses 100+ apps (mostly CGI's) that all share some common library code. I have just finished moving the library fro...
I have a code creating a new window (as a splash screen). When the window is created and shown, icons on desktop flash once or twice, like all the desktop refreshes. What can be cause of this?...
Hello All,
I am continuing some work (well still researching) on the possibility of developing an application which is more closely related to a firewall application. I know, there are hun...
Hi Experts,
I have develop a filter driver call myfilter.sys, now I want to write a program to let user can click on this to installer my filter driver.
As i know we can right click on .in...
I have basically the same question as this
http://www.experts-exchange.com/Programming/System/Windows__Programming/Q_20860587.html?sfQueryTermInfo=1+bitmap+resourc+updat
The accepted solut...
In windows programming, there are ListBox (or ComboBox) control messages that are 'LB_SETITEMDATA' & 'LB_GETITEMDATA'.
These messages should be very useful while adding and retrieving the str...
I am redoing an existing User interface for a System Service and it was suggested that I consider doing it as an MMC Snapin. I've done some preliminary research and it appears that an MMC wou...
Is it possible to run a cronjob with windows server 2000?
I have an InnoSetup script that is failing when I try to compile it...
The error is: "Unknown Identified 'InstExec'" -- on the line below that starts "bres := InstExec".
This is the pa...