|
I have not been able to find a simple way to show only the minimize or maximize buttons on the title bar. Whether or not I include WS_SYSMENU in the createstruct.style, it seems the WS_MAXIMIZEBOX and WS_MINIMIZEBOX bits only enable/disable the functions of the boxes, but they both seem to show regardless of the settings. Is there any simple way to show only one of the boxes? Or do I have to get out of MFC and create my own main frame window? Thanks for any suggestions.
|
|
|
|
|
Hi all,
I need to check in my MFC 7 application whether a particular directory exists.
How can I do this?
I know how to create a directory, but not how to check whether it exists or not.
Thanks so much!
-- narada
![Confused | :confused:](https://www.codeproject.com/script/Forums/Images/smiley_confused.gif)
|
|
|
|
|
BOOL PathFileExists(
LPCTSTR pszPath
);
|
|
|
|
|
Thanks so much!
Just what I needed!
-- narada
|
|
|
|
|
how to create a modeless dialog window which behaves exactly the same as the "downloading window" from the Windws OS. what I really mean? I don't want this window to disapper when i minimize the main application. If i minimize the dialog I want to place it on the task bar, not on the main screen.
Waiting for your advices....
|
|
|
|
|
try making the modeless dialog a child of the desktop, not of the main application. do this in the "Create" call to the modeless dlg. that should fix the minimize issue you describe.
-c
Image tools: ThumbNailer, Bobber, TIFFAssembler
|
|
|
|
|
This is my problem. I have to draw some lines over a media player control while it's displaying a video, and I can't do it. I just can do it if I don't load the video. Anyone can help me?
|
|
|
|
|
hello,
in CHtmlView how detect the user click on a link, and how get the link URL.
I want to block Ad popup, so i do :
void CSpy4WebView::OnNewWindow2(LPDISPATCH* ppDisp, BOOL* Cancel)
{
*Cancel = true;
}
that's why i want to detect if the new window is ad, or if the new window is called by the user.
thx for your help.
|
|
|
|
|
|
Thx Joan,
i'm trying to understand your code but it is hard for me...
|
|
|
|
|
You are welcome, the article was written in order to get the feedback from other CPians, so ask whatever you need and tell me whatever you think that should be improved.
|
|
|
|
|
Hello,
I work with CHtmlView, and i want to know the url of activate frame.
You know how to get this ?
thx in advance
|
|
|
|
|
I want to get the range of a window from other app not my app.
I used ::GetScrollRange() function but always failed.
can anyone tell me whether i can get to the purpose or not?
if yes would you please tell me how?
your helpful advice will be apriciate.![Confused | :confused:](https://codeproject.freetls.fastly.net/script/Forums/Images/smiley_confused.gif)
|
|
|
|
|
friends ,
Can u help me with some code which will detect a file if it s aMPEG-1 file or not ????
|
|
|
|
|
Is it possible to convert const unsinged char* to unsinged char*. If yes tell me how.
Reply me soon
|
|
|
|
|
Hm... why don't you try it?
const unsigned char* a = NULL;
unsigned char* b = NULL;
b = (unsigned char*)a;
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
Using the C++ casts this could be written as:
const unsigned char* a = NULL;
unsigned char* b = NULL;
b = const_cast< unsigned char* >(a);
My opinions may have changed, but not the fact that I am right.
|
|
|
|
|
baah.. same sh*t!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
*raise index finger*
Maybe, but I AM more correct!
*index finger pointing at you*
;P
< edit >It still remains evil to cast a const away.
Big design flaw!< /edit >
My opinions may have changed, but not the fact that I am right.
|
|
|
|
|
jhwurmbach wrote:
but I AM more correct
Yes you are!
I'm going to update my current project and remove all C casting sh*t and replace it with C++ castings!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
use const_cast <unsigned char*=""> (YourConstVariable)
|
|
|
|
|
ups, typo - it should read :
const_cast<unsigned char*>(YourConstVariable)
|
|
|
|
|
I want to enhance the capability of my(MFC VC++) program. Right now it is just sniffing the network traffic. I want it to show the sniffing of differt packets in graphical form. How is that possible.
I dont care what ever type of graph or chart it may be.
Moreover I want to update it in the other thread now on certain event.
Plz refer me relevent sites/apis and try to guide me step by step as I am a beginner.
Reply me soon
|
|
|
|
|
Hi everybody !!
I have an application that needs to switch to several views. For this, there are buttons in the ToolBar (one for each view). But I want these buttons to be a group (so when I selecte a view, the corresponding button stays pressed until another one is presesd).
I tried using m_MyToolBar.GetToolBarCtrl().SetState(ID_MYBUTTON,TBSTYLE_CHECK) but it doesn't seems to work.
I know, it must be stupid, but I can't find it .
Thanks
|
|
|
|
|
Hi
I am looking for the Automation of Ms Office Files (.doc, .xls) to the Web Pages using VC6. Actually this automation should also be able to make the Web Pages' formatting to the standard format of the Web Page. How can i achieve this?
Lateron i also have to convert the jpeg file, Visio file etc. Can anyone help me out.
Thanx.
|
|
|
|