For Controlling global messages I have written a small dll file which I use in my app. The header is like this (dont pay attention to the comments):
[/code]
#pragma once
#ifndef INPUT_CTRL_H
#define INPUT_CTRL_H
#include <windows.h>
#include <atltypes.h>
#ifdef __cplusplus
extern...
Thx. I haven't really thought about that quite simple solution (guess I was blind after a 100 tries).
Btw. the feature is not meant to harm users. I program kinda juke-box for parties. This feature can be turned on by the admin (with pass) so no stranger can f*** up his computer but only control...
Hi,
I have a question that I hope can be answered in this forum.
What I want is quite simple to explain: I want global mouse messages (especially WM_LBUTTONDOWN, RBUTTONDOWN and DBLCLK) to be blocked and if they are over my app-window to be sent to it.
What I want to achieve is to block people...
I am currently working on an ActiveX control, which shall write strings on the screen. Every letter is represented by a CBitmap (about 10*12 px * 16 colours) object. Every letter is a member-variable (CBitmap letterA, letterB...)and is initialized in the constructor (LoadBitmap(ID)). Then all...
If you can do this depends a bit upon your code structure.
You could do it this way (but I'm not sure):
///////////////////////////////////////////////////////
CYourFirstDlg: public CDialog
{
//initialisation
CDialog* pSecondDlg; //CDialog because the code does not know CYourSecondDialog by now...
Can anyone help me with this problem:
I just want to show a .X file (object) on the screen. Ererythings initialized so far (light disabled). In every resource I found I am told to use the CD3DFile class, but these resources referred to DirectX 7. I found the D3DFile.cpp and .h files in the...
I have tried it your way, but it didn't really work.
But although I found a quite simple solution (which included GlobalLock and GlobalUnlock):
In the InitInstance() from CMyApp I added this after
"CWinApp::InitInstance()" :
PRINTDLG pDdlg;
PRINTDLG pDdlg...
Uuups, sorry I dont think I was very clear at the end of the 2nd paragraph: what I meant was a CList or array of CQuestion class objects, which would contain the elements m_question, m_corrAns etc.
I can only try to give you a suggestion.
I would use the CSocket (or CAsyncSocket) class of MSVC
(tutorial at: http://www.hal-pc.org/~johnnie2/winsock.html, that should do it). I would create 1 server and 4 clients (so that 1 computer had to run both, and connect to localhost). The server would...
I do not really think, I can help you. But I could mention, that I have also tried to make such a file sharing program, but it does not work fully. It transfers all the data, but somewhere there are errors in it.
You could send me an e-mail for request, so you could get the source code, maybe as...
I do not really think, I can help you. But I could mention, that I have also tried to make such a file sharing program, but it does not work fully. It transfers all the data, but somewhere there are errors in it.
You could send me an e-mail for request, so you could get the source code, maybe as...
I am desperately trying to change the page setup, so that the paper will get landscape orientation.
Is there any simple way to achieve this in MSVC? I have already searched the MSDN database, and I only got the solutions to change the DEVMODE structure, but in order to do this, you seem to have...
I do not know if it is a typing error, what you wrote here.
You wrote:
COleDateTime(pDate) ct;
which of course should be:
COleDateTime ct(pDate);
else you'll get errors like "ct: undeclared idetifier".
(another little thing I noticed is the name of pDate - is it really a...
You could do it this way:
The "Decimal-Edit box" should get a variable type 'int',
the other type 'CString'.
When a button is clicked (or another message of your choice), do this:
void CYourDialog::OnMessage()
{
UpdateData();
char buffer[20]; //20 could take numbers up to...
I'm just trying to gain access to my parallel port, and have found out, that it is possible to do this with the _outp() function (Visual C++). But in order to use this function I need the adress of the port. Is there any function or standard value I could use?
The SDK is the basic thing you need to write windows applications. An SDK is a set of headers and DLLs in mostly combined with a help system.
Along with VC++ you get the platform SDK for simple windows programming (with Visual Studio.NET you also get the DirectX 8 SDK). If you e.g. want to...
I dont know if I understood the question you had correctly.
But a simple suggestion i have is to call the member function "ShowWindow(SW_HIDE);", which will hide the window, and to get it again: "ShowWindow(SW_SHOW);"
like this:
CMyDialog dialog;
dialog.ShowWindow(SW_HIDE)...
Now everything works; except one thing:
I cannot print the CScrollView side.
I've added a control handler to my derived CScrollView class, but it is not possible to call any standard handler on it. It works with the HTML side.
Can anyone tell me what to do?
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.