|
Thank you very much. It works very well.
jazzlycool
|
|
|
|
|
perfect, i wasn't 100% sure of me
now i am... eheheh
TOXCCT >>> GEII power
|
|
|
|
|
Hi there
Can someone help me with this?
I need to write a program which simulates a computer system in a public library.
Working on these four objects - Customer, Books and loans
and the library itself.
The library needs to collect info about Customer and add customers.
Books title, isdn number and so forth.
Loans = the date loaned and date returned.
Customers must be able to loan books from and return books
to the library.
Library needs to print out a report containg details of each book and customer for each loan.
I would apreciate if some can just give me a starting point example of how to implement this.
Also links to places where i can go thru similar code
thanks in advance
Bhangie
|
|
|
|
|
It's been a while since I did homework.
Here are some hints for my version.
Each object should encapsulate the data about the instance of the object. For a book, this would be title, author, isbn etc. You'd probably want a unique book id too, since a library may have multiple copies of popular books. For a loan, you want to record the book, the customer, and the start/return dates. If you want history you have to save these after books are returned.
A library is really a collection of other objects. You need some way for objects to persist. A librarian wouldn't type in the names of all the borrowers every day at system startup, or all the books.
Steve S
|
|
|
|
|
i want to develop the interface like ms-paint where theres a toolbox in which button like icons are drawn.also how to add scrolling capability to the interface as it is in paint.
|
|
|
|
|
Try looking at CToolBar / CDialogBar for the toolbox bit,
and CScrollView for the scrolling interface.
For scrollview at least, there are some good scribble samples.
Iain.
|
|
|
|
|
hello!!
i try to drag items between listctrls in my application,but when i drag more than 8 items at one time,the dragmove operation is so slow.
i find that CImageList::DragMove function is so slow,but why?
and how to solve it?
help me!!
|
|
|
|
|
Hi there
Is it passible to resize DC?
Thanks
|
|
|
|
|
A DC doesn't have a size per se. What it has (generally) is a drawing surface (bitmap) associated with it. If it's a memory DC, you can select a different one in, but you'd have to be sure that the old one was managed properly.
Why do you want/need to do this?
Steve S
|
|
|
|
|
1) Wath is the corret way to use "put_Picture" for an Image control if I have the Path of the Picture to load (C++ MFC)?
2)How can I find the Ptah of the application that is running?
Thank's for all
Sorry for my English!!
|
|
|
|
|
GFABBRI wrote:
2)How can I find the Ptah of the application that is running?
Use GetModuleFileName(NULL, ...) .
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
I am not quite sure what kind of parameters put_Picture expects, but maybe you could try to get a IPicture object with "OleLoadPicture"?
Jens
|
|
|
|
|
I am meeting with this question,waiting for solution....
|
|
|
|
|
How can I put a clock on a button on the toolbar?
Thanks.
|
|
|
|
|
You have a couple of choices that I can see:
1/ Have a really *huge* imagelist, and change the buttons image every minute to reflect the new time,
or
2/ Its for adding a combo box rather than a clock control, but the logic is the same: Toolbars with embedded Combo Boxes[^].
You just need a clock control now!
For example... CClockST v1.3[^]!
Good luck,
Iain.
|
|
|
|
|
|
Thanks a lot.I have looked at the wrong place:codeguru.
|
|
|
|
|
as in subject
Unmanaged in a .NET world
|
|
|
|
|
|
Hi..
Please let me know...How to use
amazon Add/Modify/Delete seller inventory
I want to upload..but how & what & where to pass parameters...
Can anybody give me any example..So Nice of U...
THanks...
---Sumit Kapoor---
|
|
|
|
|
All questions come from the javascript call window.blur() method I'm fighting now. I'm hosting chtmlview in a mdi app. When a html page with the blur() call my app brings to back and deactivated. I only want to user controls de/activate actions but the page.
1. I install a thread message hook and catch WM_WINDOWPOSCHANGING/WM_CAPTURECHANGED/WM_KILLFOCUS of hwnd Internet Explorer_Server, that's all I could find with spy++. But without call CallNextHookEx spy++ still tell that hwnd named Internet Explorer_Server received these messages! Is ole control live in a different message pump world?
2. So how can I catch the blur call? Go to upward with WM_ACTIVATEAPP or downward with eventsink HTMLWindowEvents::onblur
Sing when we're programming.
|
|
|
|
|
Instead of installing a hook, why not just dynamically subclass "Internet Explorer_Server" window? Did you try that?...
As to hook and why it doesn't stop the message: Check, What hook are you using GETMESSAGE or CALLWND???
"...Ability to type is not enough to become a Programmer. Unless you type in VB. But then again you have to type really fast..."
Me
|
|
|
|
|
Igor anywhere?
when javascript:window.blur()is called the WM_WINDOWPOSCHANGING message is sent directly to the CMainFrame, that's the differece from moveto and resize. So I suspect the ie control or ole container done different ways. All knowledge is gathered from spy++ and I want to know why in theory. Who controls the message goes up way in OLE control? OLE container or the browser itself?
Sing when we're programming.
|
|
|
|
|
According to Microsofts IHTMLWindow2::blur Method documentation
http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/mshtml/reference/ifaces/window2/blur.asp
blur causes losing focus by web browser. Instead of chasing messages with spy, maybe better approach is to write an even handler for html window::onblur event and SetFocus back to web browser and possibly activate your app...
As to the ways ActiveX control can negotiate with container -- they are not necessary OLE messages. I'm absolutely sure that MSFTs WebBrowser control talking to your frame window through Win32 messages too in addition to Ole ClientSite mechanism... At least that what MSFT allowes to do for themselves, while publishing rules for others...
Regards...
"...Ability to type is not enough to become a Programmer. Unless you type in VB. But then again you have to type really fast..."
Me
|
|
|
|
|
I've dug into wrong way
As you said the right logic is even if my main window takes some actions not expected it must receive some messages in win32 way! So spy++ always rules I will remember that till the water runs dry;P
Interface event sink is another way. But no parameter to cancel it and too much code to write. Only mfc involved in that's simple and clean.
Sing when we're programming.
|
|
|
|