|
As far as my reading..Globals goes into data segment of a program.
-- modified at 1:14 Thursday 20th April, 2006
|
|
|
|
|
vikrams wrote: As far as my reading..Gloabals goes into data segment of a program.
Thats why i use AFAIK term
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Hi,
I have a problem while resizing the window. Suppose if i am using a SDI application to draw two rectangles in the client area and if i do any of the operations like moving the window or resizing the window i am getting blank on the client area.
Can any one help me on this.
Do i need to store whatever the operations i did on client area somewhere and use the same for redrawing in View's OnSize function?????
Thanks in advance..
-kiran
|
|
|
|
|
what code you have used to draw the said stuff ?
|
|
|
|
|
Thanks for reply. I am using DrawText and Rectangle with the view's device context.
Thanks in advance.
-Kiran
|
|
|
|
|
Can you show code in OnDraw ?
Normally OnDraw gets called when view resized.
|
|
|
|
|
Sorry. I am not doing anything in the function OnDraw().
Currently i am repainting the window with the help of another function which will access a linked list to get the drawn objects.
Is there any another method??? to implement this?
-Kiran
|
|
|
|
|
any special reason for not using OnDraw() ?
B'coz thats the best method to implement drawing applications.
|
|
|
|
|
can anybody plz assist me as to how to design a front end... basic mouse click on certain buttons and another window p[ops up type application in vc++
AnubhaV
|
|
|
|
|
For Button click -
See BN_CLICKED Notification in MSDN.
For Dialog Box -
See DialogProc Function and CreateDialog Function in MSDN
This should help.
S o h a i l K a d i w a l a
modified 21-Apr-21 21:01pm.
|
|
|
|
|
What do you exactly want to do?
In context to your question what I would say is :
You can use the CButton class and derive a class from it to meet your needs and functionality.
For the Designing of a dialog you can create bitmap images and set them into the picture controls or on the button to show and get the desired effect.
Vision is Always important and so is your ATTITUDE.
Wishes.
Anshuman Dandekar
|
|
|
|
|
Use MFC, it will be faster to learn than pure WIN32 programming
|
|
|
|
|
For VC++ 6.0, Follow these steps
1. From the File menu, select New
2. Under Projects tab, select MFC AppWizard (exe).
Start your work.
For further help, visit MSDN or ask us at code project.
Good luck.
We Believe in Excellence
www.aqueelmirza.cjb.net
-- modified at 2:39 Wednesday 19th April, 2006
|
|
|
|
|
My dialog only can be restored when clicking task bar icon,not be minimized.How to minimize it through click task bar?
|
|
|
|
|
Hello, everyone!
I encounter a problem. Running on Vista, when I invoke LoadBitmap()
to load a bitmap, but it doesn't work. Who can tell me the reason?
I run the program with "Administrator" privilege and the Vista version
is CTP Build 5308.
Thank you and best regards.
|
|
|
|
|
hi friends,
plz tell me how to draw a color button in dialog based application.
and how to add bitmap ona button.
thanks in advance.
bye
Rahul here
|
|
|
|
|
you can create a bitmap button and then set the bitmap on that button after changing the properties of that button to owner draw
CBitmapButton mybutton;
mybutton.LoadBitmaps(IDB_MYBITMAP);
mybutton.SizeToContents();
Vision is Always important and so is your ATTITUDE.
Wishes.
Anshuman Dandekar
|
|
|
|
|
you can use derived CButton and use WM_DRAWITEM and (owner draw from false to true in propery window)
Bitmap use SetBitmap of course set in property window bitmap from false to true
|
|
|
|
|
Anyone ever added PerfMon activex control to a dialog here?? Any sample code?
ed
~"Watch your thoughts; they become your words. Watch your words they become your actions.
Watch your actions; they become your habits. Watch your habits; they become your character.
Watch your character; it becomes your destiny."
-Frank Outlaw.
|
|
|
|
|
Hi,
I am using LoadProfileSettings(5) in InitInstance to open
the 5 most recently used files when my application is loaded
and AddToRecentFilename(szLoadFilename) to update the MRU list
with the last file loaded.
It all works fine except it abbreviates the full file path
e.g. c:\my documents\my long directory\my file.doc becomes c:\my documents\...my file.doc
Is there a way please of preventing it from abbreviating the full file path so I
get c:\my documents\my long directory\my file.doc instead of
c:\my documents\...my file.doc
Thanks,
Daniel
|
|
|
|
|
daniel madden wrote: It all works fine except it abbreviates the full file path
e.g. c:\my documents\my long directory\my file.doc becomes c:\my documents\...my file.doc
Where is this abbreviated path shown?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
Hi David,
c:\my documents\my long directory\my file.doc was a simple example that gets an abreviated path of
c:\my documents\...my file.doc. Thererefore c:\my documents\... is the abbreviated path of c:\my documents\my long directory\.
Daniel
|
|
|
|
|
I understood all that. My question was where is this path shown?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
Ok - sorry the path is shown at the bottom of the File Menu where it usually shows the most recently used files.
|
|
|
|
|
It does that so you don't end up with menus across the screen.
To override this you'll need to search for OnInitMenu in the MFC sources. Good luck, it gets quite knotty down there...
Iain.
|
|
|
|