|
Why don't you read the article? It's actually very very simple:
http://www.codeproject.com/docking/dockwnd.asp#DEACTIVATE[^]
And no, you don't uses hooks to intercept window messages. Simply override WndProc in your derived class, check for WM_NCACTIVATE message, and before calling base class, always set wParam to true (if your main window has focus.) In the article it takes two lines of code.
[EDIT: A couple of things: First, VS.NET and Office *do* use ownerdrawn title bars. And second, in VS.NET, a toolbar's caption bar never is painted active (only for docked windows.)]
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
|
|
|
|
|
ok, but how can i set for my window a my owndrawed title bar?
|
|
|
|
|
You don't. You set your window to have no titlebar at all, and then paint one at the very top.
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
|
|
|
|
|
Hello All,
I have a couple of questions. First I am using v2.0 of the Data Access Application Block. I am using the filldataset and executedataset functions of the DAAB. I have been reading some on typed vs untyped dataset. My question, if I created a typed dataset which contains certain tables and then I use the filldataset and pass in the typed dataset and a sql statement with the new table name for the sql statement. Where is the advantage. Is now the new table I created in the typed dataset easier to access. I am confused by why would I use a typed dataset and create a new table from a sql statement and put it in the typed dataset.
Thanks
|
|
|
|
|
Typed dataset is much faster than untyped dataset.
|
|
|
|
|
Is it? I wonder why it should. Do you have any links regarding this?
|
|
|
|
|
Hi Robert
The DataTables, DataColumns and functions are well defined in typed dataset. In design time itself you will know the number of tables, number of columns in a table and its data type. But in un-typed dataset everything will be generic.ie number of tables, number of columns in each table and its data type every thing will be decided and created by runtime. It depends upon the query or stored procedure. When we try to fill an un-typed dataset using adapter first runtime will execute the query or stored procedure. Then it will analyze the results and based on that it will create tables columns in dataset. So it takes more time than typed dataset.
Tnx
M.Sendilkumar
Thomson,B'lore,India
|
|
|
|
|
hi all.
How can i Convert the sound comes instantly from the microfone during the speaker talks into array of bytes to use these bytes to send it over the network any help on how can i convert the sound from the micrfone into array of bytes.
Please any one wanna help writes his code below to see it
Miss With The Best And Die Like The Rest
|
|
|
|
|
If you don't want to use componentts/API (EG: Skype or MSN API) for this function, I tell you one way (I know it's a litlebit supid, but... )
Yuo can find a lot of articels for the sound recording, and playing, so:
- record the souind into a file
- get the bytres of this file, nad transfer it
- on the other side play back the file
But I think it's a werry slow way.
Please if you find a way to solve this problem, post it back tom me, I'm interested in this ide too.
Thanks
|
|
|
|
|
Hello,
I have a database table with 2 fields, DepartmentCode, and DepartmentName. I want to add the values of these 2 fields into a combo box from the database. I can add one field, but how can you add 2 fields to the combox so that when the user clicks it, it will display all the departmentCode and Department name in 2 columns.
I can do this with just one field, but l am having trouble tying to display the extra field. Is this possible in a combox box?
Thanks in advance,
Steve
|
|
|
|
|
|
People are talking about this all the time.:::::
How do you design a data model for object oriented applications? Should the data model be designed first, or should it be derived from the object model?
*************************************************
I really do not aggree with this.OO is not the coolest thing to model the world.
The value and the pointer of the value should be seperated such as in adaptive object models where we can model the world with 4 classes.
entity entityType attribute and Attribuetype....(+ accountability by martin fowler if u like)
the reason the OO models fail as they are trying to model the world which is changing all the time.
|
|
|
|
|
And what do you want to tell us with that?
|
|
|
|
|
|
|
Please reply to the forum in future:
erdem sahin [xxxxxxxx@hotmail.com] to me
adaptive object modelling is ALL about design patterns.
u have to use 16 of the design patterns.it can be kind of complicated in the
beginning but what u end up with is a code that is adaptive where u dont
have to change your code with the new requirement.
Something has to change when the requirements change. If it isn't code then what is it?
My: Blog | Photos
WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More
|
|
|
|
|
the structure of traditional OO systems became immutable after deployement.
the abstraction levels in AOM systems have us leverage our infrastructure by not using TUPLE logic in the first place.
ForExample:
TUPLE LOGIC::: ID:126 Name:John LastName:smith WifeName:Mary
tuple logic is just so artifical,and do not represent the world.Think about a persons brain cells and the his memory do u think every thing is stored with only one pointer?
****************************************************************
AOM LOGIC::::
IDNAME:126 Name:John
IDLASTNAME:1256 LastName:smith
IDWIFENAME:34545 WifeName:Mary
every value has its own id.
AOM systems make a TUPLE only at runtime.
******************************************************************
|
|
|
|
|
seperate the metadata and apply all the patterns u know.
:=)
|
|
|
|
|
|
u should put the metadata in the database and use a builder pattern to build your objects.if u want relationships u should use martin fowlers accountability pattern and if u want a singleton on your metadata u must use flyweight pattern.
it seems like u got to use many patterns.The fact is when it comes to modify your program u only change the metadata than everything is fine.
u should visit www.adaptiveobjectmodel.com and also Chris lasater in this forum is taşking about this topic which might help u.
PS:Also in vs 2005 have look at domain specific languages.
|
|
|
|
|
What I am getting at is the idea of not having to change the "code" when the requirements change is a false one. You would still have to change some sort of meta data in order to satisfy the changing requirements. At the end of the process the possibilities for introducing bugs and not delivering what the client actually wants is more or less the same.
It is not a silver bullet solution.
|
|
|
|
|
This is true, Colin. But what adaptive solutions do offer us is a way to make applications more configurable (regarding workflow) to the end users. To my knowledge there is no end-to-end solution that meets all needs, simply because those needs are more directly defined by the business requirements. However, since business requirements change frequently, making immutable code flow logic leaves very short lives for code. Even the online industry is feeling the need to configure dynamically: if you are a subscriber to most web portals like Yahoo or MSN you have a user configurable home page where you can decide which items of interest you would like to display on your page. Most portal technologies are indirectly pointing us to a more adaptive model, simply because they are configurable by end-users or power-users.
I see adaptive technologies like Adaptive Object Modeling in the same light as a web portal: some functionality is needed to be coded by developers, like database and business logic, but where and when this logic is implemented should be (following business trends) decided upon by business experts, not you and I as developers. Some adaptive models incorporate the non-meta-data into thier models tightly coupled with thier meta-data, which is one way to do it, but I prefer to let the EUD(end user developer) have the hand in how business data is handled, and simply allow the AOM framework to give the actual implementation of when and where back to business experts (which most developers don't have the bandwidth to be).
Chris Lasater
http://www.geocities.com/lasaterconsult
|
|
|
|
|
|
I have written an Outlook Add-In that has a number of buttons on it as well as a popup menu and the strangest thing is happening.
When debugging the Add-In with Outlook loaded as the debugging application, the buttons load and all of their respective click handlers work. For now each has a "Hello world" type message when it is clicked.
If I leave Outlook running for a few minutes all of the handlers except one stop working!!!
Anyone got a bright idea why this would happen?
|
|
|
|
|
Wild guess, but maybe, just maybe, there is some remoting going on and the server object's lease gets expired? I don't know how you can control that though.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|