|
Anchor and Dock properties are not available in MFC.
It is available in the .Net languages for Windows Forms.
|
|
|
|
|
tomay3000 wrote: Anchor & Dock
???
Me think they are for VS2008 ( and the MFC Feature Pack ), are you talking about the CDockingManager (class and behaviour) ?
Anyway, if you are thinking of upgrading, at least go to the latest VS2008 (fully serviced patched and with the MFC feature pack).
Max.
Watched code never compiles.
|
|
|
|
|
Visual Studio 2008 is heavy
Tomay is Back
|
|
|
|
|
Visual Studio 2010
I have my project set as a release, but of course when I run it through the IDE it runs in Debug mode.
If I run the program outside of VS2010 the app crashes when it is trying to get a COM for Common Item Dialog.
|
|
|
|
|
So what exactly is the question?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
I setup my project as a release.
When I run it through VS2010, it doesn't crash.
Standalone CRASH!
When it tries to start the Common Item Dialog!
|
|
|
|
|
Can anyone suggest some good books to learn drawing in VC++?
|
|
|
|
|
Drawing what ? drawing controls (ownerdrawn) ? simple 2D drawing (use GDI/GDI+) ? or 3D (DirectX or OpenGL) ?
Watched code never compiles.
|
|
|
|
|
Depending on what you're looking for.. I have a copy of "Starting out with Games & Graphics in C++" and it's very nice, it uses the Dark GDK wizards which you can get from www.thegamecreators.com for free.
|
|
|
|
|
Is it possible to draw in different layers? So that if you erase something in one layer whatever you have drawn on the layers beneath won't get erased.
|
|
|
|
|
no, there is no built-in layer concept in VC++ or GDI. you'll have to come up with a custom layering mechanism.
i've done it by drawing each layer into its own CBitmap/HBITMAP, then drawing the Bitmaps into a final composite bitmap for rendering to the screen.
|
|
|
|
|
hai
I want some small rectangles on one layer. Then a line has to move from one end to another(which will be like drawing line ..erasing that and drawing next line in new position).This line I want in another layer so that the rectangles are not erased. When I tried to do both rectangles and lines together the rectagles are getting erased.So if i have them in separate layers then change inone layer will not affect the other. So is it possible to have line drawing in one layer and rectangles in another ?
|
|
|
|
|
How to know from the current CWnd object if the Parent CWnd object has been sized. If so how to get its new RECT size (to do modifications to the child (this) or (current) CWnd object).
I need this code. Please help me
Tomay is Back
|
|
|
|
|
tomay3000 wrote: How to know...
The parent's code could notify the event to its children...
Have you the parent's code ?
virtual void BeHappy() = 0;
|
|
|
|
|
For example I wanna create a cool object : CoolButton & make that CoolButton
Anchored to the Parent CWnd . CoolButton must know if the parent CWnd has been changed its size, to make the CoolButton moves too
Tomay is Back
|
|
|
|
|
I'm sorry, my eyes are deaf. Can you type a bit louder please?
Iain.
I have now moved to Sweden for love (awwww).
|
|
|
|
|
Please read the post at the top of the forum "HOW TO ASK A QUESTION", if you follow its instructions you will give a more helpful answer.
Ali
|
|
|
|
|
Hi everybody,
As i said, MAPIReadNext function return 0 and a pointer to unread message on windows live mail, but after it, if i send a MAPIReadMail command i receive a 0 return code again, but the pointer to struct message is NULL.
Portion of my code:
MapiMessage* message ; // Created but not initialized
ULONG err=0; // Created and initialized
LPSTR rgchMsgID; // Created but not initialized
// return 0 and put 546 into rgchMsgID
ULONG uFindRet = lpfnMAPIFindNext(lhSession,0L,"","",MAPI_LONG_MSGID|MAPI_UNREAD_ONLY,0L,rgchMsgID);
err = lpfnMAPIReadMail(lhSession,0L,rgchMsgID,MAPI_BODY_AS_FILE,0,&message); // Return 0
if (message==NULL) // true, because message is NULL.
err = FAILMAIL; // Badly, Allways execute this line.
Can someone help me ?
I try everything i knew.
since now, thanks.
|
|
|
|
|
Hello,
In my MFC MDI application, I would like to dock a set of side panes in tabs. For the tabs, I would like a 32x32 icon and no text, similarly to the 3ds max style:
http://mods.terranova-exp.com/tutorials/3dsmax5/images/tut_image_01.jpg (the one in the upper right side of the window).
Is this achievable using the CDockingManager , or are the 16x16 icon sizes hard-coded?
I am using VS2010 RC.
Thanks in advance!
|
|
|
|
|
tell me Books on WIN32 c++??
|
|
|
|
|
http://www.charlespetzold.com/pw5/[^]
Don't know if there are better ones these days, but this one book should be on every Win32 programmer's desk.
Watched code never compiles.
|
|
|
|
|
You will need to google this, Windows Development it's on MSDN.
The book alone won't help much, but MSDN with Windows Development topic should put you in the right path.
You need to focus on which Windows version you want to target!
Windows XP / GDI
Windows Vista / Direct2D (update)
Windows 7 / Direct2D
Focus on CreateWindow function and Common Controls!
And Visual Styles...
|
|
|
|
|
Fareed Rizkalla wrote: You need to focus on which Windows version you want to target!
not really.
AFAIK, basic Win32 should work for all versions of Windows.
Fareed Rizkalla wrote: And Visual Styles...
not necessary IMO.
Watched code never compiles.
|
|
|
|
|
yea Maximilien is right.....tell me more books if anyone know...thankx Maximilien for the book
|
|
|
|
|
Visual Styles if he wants his apps to like shiny from Windows XP and later.
Windows 7
-New UI changes
-Location Services
-Direct 2D
... I believe these are more targeted towards Windows 7.
|
|
|
|