|
sunilpv1982 wrote: Setting SetWindowPos with HWND_TOP doesn't help as the window is shown on the taskbar alone nad not displayed to the user.
Have you used the SWP_SHOWWINDOW flag with SetWindowPos ?
SetWindowPos(HWND_TOP, ......., SWP_SHOWWINDOW);
MSDN Docs on SetWindowPos[^]
If this doesn't work then try
ShowWindow(SW_SHOW);
MSDN Docs on ShowWindow[^]
Hope this helps
---
Hakuna-Matata
It means no worries for the rest of your days...
It's our problem free, Philosophy
"I think my response was 'What idiot dreamed this up?'" -- Mary Ann Davidson, Oracle's chief security officer, in typical blunt manner, remembering her reaction to the company's scheme to brand its databases as "unbreakable."
|
|
|
|
|
Yes that is also done. But again in vain....
Sunil
|
|
|
|
|
sunilpv1982 wrote: Yes that is also done. But again in vain....
Well now I am not really sure as to what the problem is. Are you positioning the window in the visible area of the screen? If possible, do post some code so that we can debug what the problem really is.
---
Hakuna-Matata
It means no worries for the rest of your days...
It's our problem free, Philosophy
"I think my response was 'What idiot dreamed this up?'" -- Mary Ann Davidson, Oracle's chief security officer, in typical blunt manner, remembering her reaction to the company's scheme to brand its databases as "unbreakable."
|
|
|
|
|
in vain how? What is/isn't happening?
HakunaMatada's example should work, although I would try with the SWP_NOMOVE and SWP_NOSIZE flags
to make sure you're not resizing and/or moving your window to an "invisible" size/location.
Something like this:
::SetWindowPos(hwnd, HWND_TOP, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_SHOWWINDOW);
Mark
"Go that way, really fast. If something gets in your way, turn."
|
|
|
|
|
Is the window a child window?
"Go that way, really fast. If something gets in your way, turn."
|
|
|
|
|
its a dialog based application.
Sunil
|
|
|
|
|
For my application I want to have a button inside a CEdit control. Since I am not a MFC expert can somebody tell me if and how this can be done?
Thanks!
|
|
|
|
|
|
|
Meindert2 wrote: For my application I want to have a button inside a CEdit control. Since I am not a MFC expert can somebody tell me if and how this can be done?
Learn[^] how to do this.
|
|
|
|
|
I like this one! But I would like to have a CCustomEdit :public Cedit that does this....
|
|
|
|
|
Meindert2 wrote: I like this one! But I would like to have a CCustomEdit :public Cedit that does this....
Then look at what the other guys have suggested.
|
|
|
|
|
Found it and have it working! thanks!!!!
|
|
|
|
|
I look for a memory leakage detector which will show me lines of leakages in my source code just like
"Runtime checker". Unfortunately its not free.
BEST REGARDS
|
|
|
|
|
|
Also, for simple file/line-number info in the debug window (using the debug CRT) for leaks in
memory allocation, maybe check out this thread[^].
Mark
"Go that way, really fast. If something gets in your way, turn."
|
|
|
|
|
Hi all
In my activeX control I have certain texts whose fonts I need to change using CFontDialog.
I cannot change the font using stock font since I need to have different font for different texts.
How can I do this?
This is what i did.
I have a member of CFontHolder m_Font in my control. Then with SetFont and GetFont method am trying to change m_Font. But I dont know how to set a particular font to m_Font object. And then get the font from m_Font and select that to DC so that TextOut will be drawing text with that Font.
Any help would of great help.
Regards
The Best Religion is Science.
Once you understand it, you will know God.
|
|
|
|
|
|
For drawing bitmap on my created window I require to add file #include <windowsx.h> (For SelectBitmap). But after including this file I get an error like this.
I have also include "Windows.h",but if I remove it , I get an error about HINSTANCE.
I have my code in regular dll.Can anyone tell how to resolve it.
|| ART OF LIVING ||
|
|
|
|
|
|
Yes you are right. Thanks
|| ART OF LIVING ||
|
|
|
|
|
Did that link solve your problem?
|
|
|
|
|
That link solved indirectly,as I changed order of my library it worked.
|| ART OF LIVING ||
|
|
|
|
|
I gald it solved your problem.
|
|
|
|
|
Hi all,
I got a big trouble in rotate algorithm in my project.
please see all pictures
As you see my first picture that I copied from my project. Note that, background picture mustn’t effect when I drag mouse, but grid lines have to be effected when I drag mouse around center point, so when I drag mouse, grid lines must go around center point until I stop drag and release mouse.
My trouble is when I drag mouse around center point (yellow triangle) and when angle reach greater than angle 90 (similar picture 2) then I can not reach angle 180 or greater, if I still keep drag mouse till angle 180 then yellow triangle turn back and point to number of about angle 340 (similar picture 3) so when angle greater than angle 90 I have to release mouse then drag mouse again => it’s not good.
Please tell me how to solve this trouble. Thank you so much.
I’m sorry, My English is not good!
|
|
|
|