|
Holy Moly!
How do you know stuff like this?! I'm duly impressed.
If the post was helpful, please vote!
Current activities:
Book: Devils by Fyodor Dostoyevsky
Project: Hospital Automation, final stage
Learning: Image analysis, LINQ
Now and forever, defiant to the end.
What is Multiple Sclerosis[ ^]?
|
|
|
|
|
Mustafa Ismail Mustafa wrote: How do you know stuff like this?!
20 years of reading stuff combined with a (very) good memory You may have had an annoying classmate at school who never seemed to have to study for exams? Yeah, that was me - learning stuff just sticks with me.
Remembering peoples names or what I was doing last week? Nah, can't do that!
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Stuart Dootson wrote: You may have had an annoying classmate at school who never seemed to have to study for exams?
Funny, its like you were describing me. I never took that in class though (the OP that is)
If the post was helpful, please vote!
Current activities:
Book: Devils by Fyodor Dostoyevsky
Project: Hospital Automation, final stage
Learning: Image analysis, LINQ
Now and forever, defiant to the end.
What is Multiple Sclerosis[ ^]?
|
|
|
|
|
Hi!
I'm having a problem placing a transparent window over a window of a foreign application. Description:
1. I create a transparent window with controls on it(Transparency color = RGB 255,0,255)
2. I'm searching, finding a window of a foreign application and set my window on it (via SetWindowPos(Foreignwindow, Mywindow)). it works.
3. If the foreign window is minimized, my window has to minize, too. After maximize...my window should maximize, too, but the order of the windows should be the same....my window over the other
4.If the user opens another window e.g. Notepad and Notepad is topwindow...my window should be visible, to as long as the foreign window is opened but the ordering should last. So notepad is at top, my window is the next and the foreign window.
Example:
-Foreign Window, above...
-Mytransparent window
Notepad opened...
-Foreign Window, above...
-Mytransparent window, above...
-Notepad
My transparent should always positioned over the window and always visible if the foreign window is visible. If the foreign window is not visible, my transparent window shouldn't be visible, too.
How to do it? someone has an idea or code?
Thank you very much and excuse my bad english.
|
|
|
|
|
You should install a CBT hook to track window minimize/maximize and move/resize.
Look at SetWindowsHookEx[^] for WH_CBT .
To keep the window on top of a particular window, try and use SetParent[^]
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Hi! Thank you for your answer.
I did not try the hook, i want it all in one app if possible.
I tried to set the parent and it works....but...the foreign window is a subwindow of another window (let's call it mainWin). After SetParent(child,parent) my transparent window was over it and visible. But after clicking the main window, the main window did not get the focus and my transp. window was shown. After clicking the transwindow the mainwindow was shown. Any other ideas?
Thank you very much!
|
|
|
|
|
Don't know if this will be helpful to you but something similar is done here -
Minesweeper, Behind the scenes[^]
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Hi and thanks! No...not helpful. The article is about the games memory...mainly.
The overlay works a bit...only the activating and focussing doesn't work.
I got an example software for that www.pokertracker.com has overlays, too.
|
|
|
|
|
I want know how to save 'IDC_LAT , IDC_LOT' value reviced from NMEA protocol into xml file type
Source
send me mail to pencil80@nate.com
|
|
|
|
|
You've been spilling crap for quite sometime now. I'm voting for your message to be removed.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
I have edit box in my application. I am filling text in edit box from code. I don’t want allow user to modify data. So I made Read only. When I change to read only edit box back ground color is changing...I want always white background how to do it..
One more thing how to change the static text back ground as white..
Thank you in advance...
|
|
|
|
|
Add Window Message WM_CTLOLOR
OnCtlColor Function
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
// TODO: Change any attributes of the DC here
HBRUSH hbru = ::CreateSolidBrush (RGB(255,255,255));
if(pWnd->GetDlgCtrlID() == IDC_EDIT_SERVER)
{
pDC->SetTextColor(RGB(0,0,0)); //Set TExt color
pDC->SetBkColor(RGB(255,255,255)); //black color
return hbru;
}
// TODO: Return a different brush if the default is not desired
return hbr;
|
|
|
|
|
If the edit control is always read-only, why not just make it a static control?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Hi,
I have MFC application and including a web service
Then got many error. CCritical setion class is using in MFC project
if i remove that class then problem may be solve.
But i need that class. I have no idea how to solve this problem????
|
|
|
|
|
shivanandgupta wrote: Then got many error
What is the exact error message(s) ?
You realize that your question is totally vague ?
|
|
|
|
|
I get a lot of Compile time errors (C2872)
CCriticalSection Ambiguous Symbol.
|
|
|
|
|
Are you redefining a CCriticalSection object somewhere in your own code ?
|
|
|
|
|
Are you including afxmt.h ? Have you read this?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
I recently encountered this ambiguous symbol issue and found a solution. Posting here in this old thread for reference.
I had the same issue in a project where I needed to include both <afxmt.h> and <atlsync.h>. They each have a similar set of concurrency classes with the same names -- but for a given class some of the member functions are distinct.
In Visual Studio 2022 build 17.4.3 with the latest Windows 10 SDK (and perhaps in older IDEs and SDKs), you can reference classes from both of these headers without ambiguity, so long as you:
1) Include afxmt.h BEFORE including atlsync.h , e.g.
#include <afxmt.h>
#include <atlsync.h>
2) Do NOT specify using namespace ATL
3) To reference a class in atlsync.h , preface the class name with ATL:: , e.g. ATL::CEvent or ATL::CSemaphore . If you do not add this ATL:: namespace preface, the class will be referenced from afxmt.h .
|
|
|
|
|
|
I get a lot of Compile time errors (C2872)
CCriticalSection Ambiguous Symbol.
I can not remove CCriticalSection Class.
|
|
|
|
|
My English not well, please take care of.
thanks you!!!!!!
|
|
|
|
|
I'll take care of that and you're free to go now. THANKS.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Welcome again in the CP's Memorable Quotes list. [^]
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hi,
I have downloaded an app from the below link and using it, it works fine.
Neat Tooltip for ComboBox[^]
I create a new MFC dialog based application in VS2008, and add 2 files from the prev project to this new project, the tool tip functionality does not work.
I guess the issue is with the target OS for compilation.
In VS2008, the target compilation is Vista, 0x0600. - the tool tips dont work.
In the prev project the target compilation is 0x0500. - the tool tips work here.
In my new project, if i change explicitly the target OS to 0x0500, the tool tips work.
I dont know what is the problem.
Any help will be great. I am using IE 7.
Thanks,
Saleem
modified on Monday, May 25, 2009 9:06 AM
|
|
|
|