|
Hi,
i used the article about the MemDC (http://www.codeproject.com/gdi/bufferdc.asp).
I used the MemDC class and i have also a sideeffect, the background of the view is drawn black.
In the OnInitialUpdate class i put a CLIP_CHILDREN.
At the OnSize-Handler i resize all my controls via MoveWindow(......,FALSE); then i practice a RedrawWindow();
The OnDraw-Handler is modified as it's described. ( i don't have a particulary function which draws the controls explicitely)
Does anyone has an idea?
Does i need to redraw the background in the OnDraw-Handler via CDC *pDC ? But how
Big thanks
|
|
|
|
|
The default of a DC is a monochrome bit map, so that is probably the problem.
INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
|
|
|
|
|
Thanks for your reply
The background color is "lighter blue" so it's possible that the blue is replaced with black in monochrome...
What i need to do to change that the DC isn't in monochrome? or that the background is drawn correctly in lighter blue
Big thanks
|
|
|
|
|
Hi ,
I want with use asm command (in out) in VC send my value to parallel port,
my OS is windows X64 and when send to parallel port , get a OS Error.
|
|
|
|
|
You can't use in / out in Windows programs. Only drivers are allowed to access hardware at that level. If you search on the web, you'll find various programs that will allow you to write to the parallel port. They've already done the work of writing the driver and provide you with an API to call from a Windows program.
Judy
|
|
|
|
|
I have gwiopm.sys file get from internet and with this .sys file can use in / out asm command and sent data to parallel port from application Win32 , now i want send my data to parallel port from windows X64.
|
|
|
|
|
I was wondering if there's any way to manually create a modal window without the use of the DialogBox function and it's variations. And i'm not talking about manually creating the dialog with DLGTEMPLATE, but rather applying modal properties to an already created window.
Does anybody have an idea about how it could be done?
|
|
|
|
|
Just to be sure: you don't use MFC and you work only with the win32 API ?
|
|
|
|
|
Right, i'm using only winapi.
|
|
|
|
|
Kosomot wrote: I was wondering if there's any way to manually create a modal window
offcourse.
If you look into the source code of DoModal() function, you can find how MFC is creating a Modal dialog.
It first disables the parent dialogs( if any ),
then shows the new dialog,
runs a messges loop untill the dialog is closed
Enable back the parent dialog,
nave
|
|
|
|
|
Kosomot wrote: I was wondering if there's any way to manually create a modal window
Here's[^] an example.
|
|
|
|
|
Thanks alot, i'll check the examples out.
|
|
|
|
|
Hi all,
I have started one thread(UI thread) several number of times either at same instance of time or at different instance of time. if i want to end a single thread how will it find out which thread to close.
can anybody help me in this....
thanks in advance
|
|
|
|
|
Hi,
Every thread will have individual handle and ID. Besides everything depends on way how you will want closing your threads.
-----------
Mila
|
|
|
|
|
How to get that individual handle?
|
|
|
|
|
when you create thread e.g.
HANDLE hHandle = CreateThead( ... );
CreateThead function returns handle to the only that one thread. Besides the last param of CreateThead returns ID of the thread.
-----------
Mila
|
|
|
|
|
who has smtp and pop protocol in Visual C++?? please email me:xinwenhui2003@163.com
thank you very much!;)
|
|
|
|
|
xinxin0629 wrote: who has smtp and pop protocol in Visual C++?? please email me:xinwenhui2003@163.com
i don't have.. what exactly your problem!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
Hello,
I am developing a software on VC++ and MFC. In that i have given a series of images. I have to create a MPEG1 video file from the series of these images. and help me in how can i do that work. Please help me its very urgent. I want also specification of MPEG1 can you arrange it for me?
Thanks and regards
Yudhisthira Attry
|
|
|
|
|
I also don't know. But still I'll suggest u, search google for the convertor of JPG format to MPEG format. Many source codes / libraries may be available.
Come online at:-
jubinc@skype
|
|
|
|
|
hi,
i am using Windows registry to store an integer value on closing of my dialog and running the application again i am retrieving this value.. this retrieved as string and i tried using "atoi()" to convert but iis giving following error.
"'atoi' : cannot convert parameter 1 from 'CString' to 'const char *'"
and the lines while retrieving the string are..
System::String* valueNames[] = keySoftware->GetValueNames();
for( int i = 0; i < valueNames->Length; i++)
{
CString strValue = static_cast<system::string*>(keySoftware->GetValue(valueNames[i]));
....
....
....
Harsha
|
|
|
|
|
I will let you know i a while
|
|
|
|
|
have you defined _UNICODE in your project settings?
nave
|
|
|
|
|
Do this way,
Suppose strKey contains the registry value it read.
int nTemp = atoi (strKey.operator LPCSTR ());
This will surely work.
Come online at:-
jubinc@skype
|
|
|
|
|
Do this way,
Suppose strKey contains the registry value it read and it is a CString object.
int nTemp = atoi (strKey.operator LPCSTR ());
This will surely work.
Come online at:-
jubinc@skype
|
|
|
|