|
naveen.V wrote: ::SetWindowPos(m_hWnd,HWND_TOP,aRect.top,aRect.left,aRect.Width(),aRect.Height(),SWP_NOZORDER | SWP_NOACTIVATE);
replace with
::SetWindowPos( m_hWnd, 0,0,0,0,0, SWP_NOSIZE|SWP_NOMOVE|SWP_NOZORDER|SWP_DRAWFRAME );
|
|
|
|
|
Thanks a lot.Its Working!!!!!
|
|
|
|
|
Thanks a lot Naveen.. SWP_DRAWFRAME did the trick.
|
|
|
|
|
Naveen.R wrote: ::SetWindowPos( m_hWnd, 0,0,0,0,0, SWP_NOSIZE|SWP_NOMOVE|SWP_NOZORDER|SWP_DRAWFRAME );
FYI: SWP_DRAWFRAME can be specified in the ModifyStyle itself
- NS -
|
|
|
|
|
NS17 wrote: FYI: SWP_DRAWFRAME can be specified in the ModifyStyle itself
Ya I forgot. BTW ModifyStyle() internally does the same thing...
|
|
|
|
|
The following code will do the trick...
void CCaptionWndDlg::OnButton1()
{
ModifyStyle( WS_BORDER | WS_CAPTION, 0, SWP_DRAWFRAME );
}
void CCaptionWndDlg::OnButton2()
{
ModifyStyle( 0, WS_BORDER | WS_CAPTION, SWP_DRAWFRAME );
}
- NS -
|
|
|
|
|
Thanks a lot.Its Working!!!!!
|
|
|
|
|
SWP_DRAWFRAME can be specified in the ModifyStyle itself. So no need to call SetWindowPos explicitly. See the MSDN documention for more details.
- NS -
|
|
|
|
|
... or supported MIME-Types?
I try to code a tiny Multimedia-App (which also uses DirectShow). For error handling, i need to know something about the capabilities of the desired Viewer (supported Audio- / Videocodecs). Any idea, how to get a list of installed codecs on the local machine? I dont know where to look :-|
Hints are very welcome :-|
|
|
|
|
|
I think you should be able to know installed software (i.e. codecs) through browsing in the registry. I can help you much more, bit if you look "registry" in the forum you will find a lot of interestan messages that maybe give you ideas.
hope it helps.
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
|
|
|
|
|
Hi,
I need a timeline control panel like Macromedia's Flash or Adobe Premier. I did not find anything in the Web.
Where can i find such o control Free or Commercial ?
Regards,
sdancer75
|
|
|
|
|
if you can spell out your actual requirement, then i can develop one such for you.
i love to develop active X controls.
|
|
|
|
|
Hello community,
i try to debug my project on dualcore machine, and if i set a breakpoint to watch the content
of my variables, for exemple CStrings, VS show only the first character???
Example:
CString csFilePath = "C:\\foldername\\file.txt";
In watch window i can see only 'C', where is the rest of csFilePath????
Thanks for any help!!!
termal
|
|
|
|
|
You might be running the unicode version.
change the following option in msdev
tools->options->Debug tab->Tick "Display unicode strings".
|
|
|
|
|
Hello,
thanks for help, you have right! For first time i think it's something with dualcore cpu,
i dont know why, i just thing so, ok, i think wrong!
with best regards
termal
|
|
|
|
|
in what is this related to the multicore architecture of your computer ?
|
|
|
|
|
In the debug window, you can specify ,su instead of the default value of ,s.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hello,
ok, thanks for info!
regards
termal
|
|
|
|
|
I am using the the demo project from the below link. But facing the error.
http://www.codeproject.com/shell/shellextguideindex.asp[^]
The errors are as follow.
SimpleShlExt.h(22): error C2787: 'IContextMenu' : no GUID has been associated with this object
SimpleShlExt.h(22): error C2440: 'initializing' : cannot convert from 'DWORD_PTR' to 'const IID *'
And they Both appears to be on Location
BEGIN_COM_MAP(CSimpleShlExt)
COM_INTERFACE_ENTRY(IShellExtInit)
COM_INTERFACE_ENTRY(IContextMenu)
END_COM_MAP()
if anybody knows what is the problem please tell me.
|
|
|
|
|
Gaurang Shah 033 wrote: The errors are as follow.
SimpleShlExt.h(22): error C2787: 'IContextMenu' : no GUID has been associated with this object
SimpleShlExt.h(22): error C2440: 'initializing' : cannot convert from 'DWORD_PTR' to 'const IID *'
put this in the stdafx.h and rebuild.
#define _ATL_NO_UUIDOF
|
|
|
|
|
Thnx a lot for your help. But can I have a little help on this macro.
|
|
|
|
|
|
I want to update media files to my iPod using my own program but not iTunes.
I had download the iTunes SDK. But if I do the task by my program using the SDK,I have to make iTunes running.But I must run iTunes,there would be no need to program by my self!
So,I want to know the iPod's database file format.
Someone would like to help me?
Thank you.
GOOD LUCK.
|
|
|
|
|
i want to load bitmap on control button, & whenever i move cursor on that button it highlight the button, & when i again leave cursor from button, it should not highlight the button
varun
|
|
|
|
|
hi
ample downloads are available at codeproject as well as codeguru.com
please go through them.
i faced the same problem long ago and could solve it using the downloads from the above sites.
gud luck.
|
|
|
|