|
|
hi,
i have a popup window which i want to move behind an other window and appear from bottom of the other window. i work with SetWindowPosition() function, and also modify the other window as a top most window, but my popup window move upon that window.
would you please help me.
thanks a lot
Miss_F
|
|
|
|
|
Miss_F wrote: SetWindowPosition()
Are you talking about SetWindowPos() method? May be you should show us your code.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
I put this code when the popup window is shown(in the popup class) (the other window which I want to put the popup movement behind it, is its owner and rect.bottom is the owner client rect bottom):
SetWindowPos( 0, 0, rect.bottom, 400, 100, SWP_NOZORDER | SWP_SHOWWINDOW );
GetOwner()->SetWindowPos( this , 0 , 0 , 0 , 0 , SWP_NOMOVE | SWP_NOSIZE );
// GetOwner()->SetWindowPos( &wndTopMost,0,0,0,0,SWP_NOMOVE|SWP_NOSIZE );
for ( int i = 0 ; i <= rect.bottom ; i++ )
{
SetWindowPos( 0, 0, i, 0, 0, SWP_NOSIZE|SWP_NOZORDER|SWP_SHOWWINDOW);
RedrawWindow();
Sleep(100);
}
|
|
|
|
|
hi
i have a application to read text file and delete it .
up to reading i done it . now i want to delete the text file after reading .
can any one help me
k.guru moorthy
|
|
|
|
|
Try DeleteFile()
BOOL WINAPI DeleteFile(
__in LPCTSTR lpFileName
);
BTW, don't delete your question(s) when your problem is solved.
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
|
I need to understand a few things about programming C, C++.
The first is Libraries, I've written some funtions that make using Win 32 APIs easier for me, I've placed these functions in a file called MyInclude.h which contains the prototypes and the functions themselves. This has worked well for me, I have also applied this philosiphy to an H file that contains prototypes and functions that are specific to an application.
Is this 'proper', by proper I mean generally accepted programming practice, as essentially the H file that is specific is not usable as a library? My thinking was that it makes the application code so much easier to read, but now I am having second thoughts.
I've shot myself in the foot by taking an application under development and reorganizing it by moving typedefs, prototypes and application specific functions to an H file and before proceeding further I thought I would seek some advice.
Thanks for your time and wisdom.
|
|
|
|
|
You should keep function prototypes in header files (*.h ) while function definitions should stay inside source ones (*.c or *.cpp ).
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
|
|
|
|
|
Thank you very much, I will get to work.
|
|
|
|
|
You're welcome.
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
|
|
|
|
|
For more info about about c++ see this link <a href="http://www.cplusplus.com">www.cplusplus.com</a>.
|
|
|
|
|
Good link, added to favorites, Thanks.
|
|
|
|
|
I glad it was helpful for you.
|
|
|
|
|
dear friends,
i need to know how to do simple image processing like smoothning, edge detection, thresholding etc., using VC++ with bitmap image.
please help me
thanks in advance
AK
|
|
|
|
|
|
|
dear all
how to reading one image from computer? thanks a lot
Li Zhiyuan
|
|
|
|
|
What kind of "image"? From what "computer"? Read to what?
This question is EXTREMELY vague.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I think its general a question,maybe.
|
|
|
|
|
CImage class or CXImage article on the codeproject or LoadImage or GDI+ are exist for you.
|
|
|
|
|
thanks, for any type image, for example , jpg,bmp..,in windowsxp system.load it into computer when i will make feature extraction. thanks
Li Zhiyuan
|
|
|
|
|
For open jpg,bmp,png,gif you can use of CImage class or GDI+ but if you want to read ot save other formats see CXImage article on the codeproject.
|
|
|
|
|
thanks friend. by the way, do you have such code? first build a class and then load this image in dialog box. i am so urgent to use it. thanks a lot.
Li Zhiyuan
|
|
|
|
|
Simplest code that you can use is:
CImage m;
m.Load(_T("c:\\1.jpg"));
m.BitBlt(...);
....
....
m.Destroy();
|
|
|
|