|
Something is definitely odd here. I took an SDI application and removed the WS_THICKFRAME style in CMainFrame::PreCreateWindow() . I compared the result to what it normally shows, and there is no transparent line and the gripper is gone, too.
You might want to create a temporary SDI application to play around with that style some more.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
I had actually removed the style in CWinApp::InitInstance() , using m_pMainWnd->ModifyStyle() , so that was what caused it - it worked fine when I used CMainFrame::PreCreateWindow() instead.
Thanks
|
|
|
|
|
Hello,
I'm looking for a software which helps to design my software.
I would prefer freeware.
Who knows a good one?
Greez, Alex
Don't try it, just do it!
|
|
|
|
|
Now i dont like coz you are not asking the name of an api that you dont know..
Eat your words buddy[^]
MSN Messenger.
prakashnadar@msn.com
Tip of the day of visual C++ IDE.
"We use it before you do! Visual C++ was developed using Visual C++"
|
|
|
|
|
I'm not asking you how to do my whole software, I'm just asking for good tools.
Don't try it, just do it!
|
|
|
|
|
There are very few freeware design tools available, and most of them are outright garbage. I suggest investing on a real tool, such as Rational Rose's UML toolset. While not the best one, it's up for the task of designing many, many types of applications.
Naturally, the very best way to design a software is to use pen & paper. Write, my friend, write down every little detail you can think of your application, what it does, how it does it, how can people use it, what components should it have. Faster than you notice, you have a clear application skeleton to build on.
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
Antti Keskinen wrote:
Naturally, the very best way to design a software is to use pen & paper. Write, my friend, write down every little detail you can think of your application, what it does, how it does it, how can people use it, what components should it have. Faster than you notice, you have a clear application skeleton to build on.
Then we just need to feed the paper into a scanner and let the computer produce the app for us.;) Wouldn't that be great.
Neville Franks, Author of ED for Windows www.getsoft.com and coming soon: Surfulater www.surfulater.com
|
|
|
|
|
Yeah, very funny indeed
But, to be truthfull, the code generation abilities of the UML modelling tools very often lack effectiviness, or have an obscure way of writing very bad code. I have seen this with Rational Rose's tools.
The program is good for creating the initial layout and possibly some case views or sequences, but for code generation purposes, you get much cleaner results by manually writing the code...
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
There is a spanish professor I think who invented a "higher" language. You have to create the concept and this software writes the C++ code for you...
I don't like the idea that machines will create our codes in the future...
Don't try it, just do it!
|
|
|
|
|
Ok. After installing (or so it seems) VC 6 SP5 and Platform SDK from
begining of 2003 I get access violation in kerner32.dll at 77e7a67a when
local object of CFileDialog is being destroyed. Why? If I try to allocate
CFileDialog with new and deallocate it with delete it works. Other common
dialogs work fine as local objects on the stack.
One more observation: costom file dialog which derived from CFileDialog and
extends UI won't work on both stack AND heap.
What could be wrong?
Simple AppWizard generated app doesn't have this problem.
Thanks a lot!
|
|
|
|
|
I'd start by looking at the stack back trace in the debugger when the violation occurs and see if you can work out what is causing it.
My guess is you have had a bug all along and it has just decided to show itself for whatever reason.
Neville Franks, Author of ED for Windows www.getsoft.com and coming soon: Surfulater www.surfulater.com
|
|
|
|
|
No! I Found it!
The problem is that _WIN32_WINNT is defined 0x500 or higher.
When one wants to use certain Win 2000 APIs with Platform SDK this problems comes up.
See acticle on this.
|
|
|
|
|
I need to print out a series of pages where each page can be a different orientation. That is the first is landscape, the second is portrait, then back to landscape, etc. Thus I can't use the code to change the default orientation but have to set it each time.
With the printing outlined in a CView class it only makes sense to make the change in OnPrepareDC, or perhapes in OnPrint.
Thanks in advance for your help.
|
|
|
|
|
it is in DEVMODE struct, u can do it by code
includeh10
|
|
|
|
|
See the DEVMODE struct and ResetDC().
onwards and upwards...
|
|
|
|
|
I'm trying to write a dll in visual c++ for use in vb6 that will search a grayscaled bitmap of a wave and return x,y coordinates responding to the waves position.
basically i have to try and get some kind of noise from a picture. the idea was to open a bitmap, convert it to grayscale (which i have done), search the bitmap for the wave which would ideally return a text file with x and y coordinates, then send that into a wave module and write the wav file.
i'm not a very experienced programmer also which had led to a few late nights tryin to work this out.
any help at all would be much appeciated on this.
thanks
|
|
|
|
|
well description of your problem, but I'm not really interested. These are loads of questions and it looks to me as you want us to do all your homework. If you're not able to solve some easy problems yourself then just don't do it...
I don't like guys that don't ask for simple things like API names they don't know, but this sucks!
Don't try it, just do it!
|
|
|
|
|
Alexander M. wrote:
I don't like guys that don't ask for simple things like API names they don't know
So if someone wants to know anything other than the name of an API (for which they do not know the name), then you don't like them? Please explain.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
you should have realized that the question was a real "homework" question. This guy didn't even know what excactly he wants to do.
He didn't care himself, he just asked because he thinks that it is the "easy" way. When I ask a question here then I have looked for the answer myself.
I don't like the way some people are asking here, because they want to get explained how to do their whole project (and they mostly don't even know how to code), and this is not acceptable.
This is the same as if I would ask you how I can do a game like half-life.... a silly question.
Don't try it, just do it!
|
|
|
|
|
Its a very simple rule, you dont choose what kind of questions you want to be posted here...
some ppl dont like it, while others would help the person if they want to or just move on or downvote the post...
best thing is that if you dont like it just move on, ignore the post,, that will let the poster know that his question has no takers.;)
MSN Messenger.
prakashnadar@msn.com
Tip of the day of visual C++ IDE.
"We use it before you do! Visual C++ was developed using Visual C++"
|
|
|
|
|
Hi guys
Never before tried to work with threads.
I just need that when the view do the OnInitialUpdate I launch a thread that starts to do things but related to the view.
I've read about this and tried with AfxBeginThread(Myfunc,NULL);
But myfunc cannot be one of the view, there is a way to do this with a method of the view like CMyView::GetData()
Best Regards
Doc
|
|
|
|
|
doctorpi wrote:
But myfunc cannot be one of the view
I think you're referring to the fact that a member function can't be threaded. This can be overcome with a little helper class I found right here on codeproject.[^]
I can make no claims it will work for you, but I've used it and it works simply and well.
Good luck!!
'til next we type...
HAVE FUN!! -- Jesse
|
|
|
|
|
Thanks, I'll take a look.
Dr.Pi
|
|
|
|
|
doctorpi wrote:
But myfunc cannot be one of the view, there is a way to do this with a method of the view...
It can if the function is static .
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Sorry my ignorance, but then inside my static function how can I access the members variables of the view?
Thanks
Doc
|
|
|
|