|
rebecca romji wrote:
this leads to a message where NMHDR is passed as one of the params but again one of the structures itself has a NMHDR type variable.
The newer common controls use WM_NOTIFY as opposed to WM_COMMAND for notifications. Notifications that use WM_NOTIFY require NMHDR structures to pass the notification information (think Notification Message HeaDeR). Notification messages that need to pass more information than the NMHDR structure can support pass structures that basically derive from (or begin with) NMHDR . That way, a common NMDHR is always available to the function that handles the message.
For example, the TVN_BEGINDRAG notification message is sent using WM_NOTIFY . That being the case, a NMHDR structure is required to be passed. But since the NMHDR structure does not support the required information of the notification message, a NMTREEVIEW structure is sent instead, which contains an embedded NMHDR structure as demonstrated here:
struct NMTREEVIEW<br />
{<br />
NMHDR hdr;
UINT action; <br />
TVITEM itemOld; <br />
TVITEM itemNew; <br />
POINT ptDrag; <br />
}
I hope that answered your question, instead of confusing you further!
Peace!
-=- James.
"Fat people are hard to kidnap."
(Try Check Favorites Sometime!)
|
|
|
|
|
Hi everyone,
I'm trying to distribute MDAC 2.5 with my application using Installer 2.0.
When the setup application is executed I want MDAC to be installed at the same time so my database app can run properly. I believe Installer 1.1 used to have a merge module that dealt with MDAC, but I can't find this in Installer 2.0.
Does anyone can any instructions or a reference for the best way to
distribute MDAC using Installer 2.0?
Thanks for your time,
Paul.
|
|
|
|
|
hey,
yah,that's true.I spent 750 rupees,300 above regular books to buy this but it just doesn't have advanced topice like messages and structures and all the kind of stuff Dunn and Chris do.I have james.l.conger api bible ,but its for win 3.1 but still way better than petzold.
I cannot find a newer version of conger.
Which is a really good book for advanced programmers ?
help me.
|
|
|
|
|
|
Windows NT/2000 Native API Reference
by Gary Nebbett
|
|
|
|
|
Anybody know how I can get SHBrowseForFolder to stop showing FTP sites? I am using CSIDL_NETWORK as the root path.
Tim Smith
I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?
|
|
|
|
|
If it is showing sites that the user specifcally added as a "Network Place" (which can be a FTP site), it sounds like the function is working correctly (as designed)...?
Although I have never tried to filter the sites that SHBFF would display (because that might confuse the user as that would not be the expected/default behavior), I would be suprised if there was an easy way to do it.
Peace!
-=- James.
"Fat people are hard to kidnap."
(Try Check Favorites Sometime!)
|
|
|
|
|
Well, it doesn't consider those FTP sites to be valid as nodes (the OK button doesn't un-grey). It also allows you to browse the directory structure of the ftp sites.
It just seems strange.
Tim Smith
I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?
|
|
|
|
|
That might have to do with the flags you have specified, for example BIF_RETURNONLYFSDIRS might cause that to happen.
Either way: I never suggested that MS' way of doing things (conventions) ever made sense!
Peace!
-=- James.
"Fat people are hard to kidnap."
(Try Check Favorites Sometime!)
|
|
|
|
|
Hi there,
I wrote a simple project by MFC exe dialog basad ...
In fact, I wrote a simple gdi game in only a dialog !
Now, i want to know, If i make a .DLL from my game by MFC DLL, How could i run it from other language like Delphi ?
I just can use LoadLibrary !
Please help me !
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
You cannot write a MFC extension DLL and run it from other languages, e.g., VB, Java, MFC extension DLL's can only be used by MFC applications. If you need to build a language dependent component, you need to do so using COM.
|
|
|
|
|
Hello, thx for reply !
For adding COM to project, i just need to add COM strcuture to my program ?
Or something else ?
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
COM is not s struct or class, it's a technique that introduced language independency on creating object models, if you do not have any background on using COM(or ActiveX), then I guess you need to spend a little time to actually learn it, COM is not such a simple thing that can be talked and mastered within this post.
There are quite some COM related articles in Code Project, just go to home page, find the "General" category on left bar and click on "COM/DCOM/COM+" link you'll get what you want. Good luck.
|
|
|
|
|
You will need to use COM
- Matt Newman / Windows XP Activist
-Sonork ID: 100.11179
01001001 00100000 01010000 01100001 01100100 00100000 01001101 01111001 00100000 01010000 01101111 01110011 01110100 00100000 01000011 01101111 01110101 01101110 01110100
|
|
|
|
|
Hello, thx for reply !
For adding COM to project, i just need to add COM strcuture to my program ?
Or something else ?
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
I don't really know that much about COM, other than it is language independent. I think it works like a DLL. I am pretty sure DirectX is in COM so it would be about the same way of using it.
- Matt Newman / Windows XP Activist
-Sonork ID: 100.11179
01001001 00100000 01010000 01100001 01100100 00100000 01001101 01111001 00100000 01010000 01101111 01110011 01110100 00100000 01000011 01101111 01110101 01101110 01110100
|
|
|
|
|
Hello,
Can anybody tell me whereabouts vc++ version 6 stores the directories that are entered under Tools, Options, Directories?
Everytime I switch computer or add a new profile I have to add these in manually again, and I'd like to just copy a file or create them programmatically.
Thanks,
John
|
|
|
|
|
In the all mighty registry, under
HKEY_CURRENT_USER\Software\Microsoft\DevStudio\6.0\Build System\Components\Platforms\Win32 (x86)\Directories\Include dirs
|
|
|
|
|
Go to:
Tools --> options --> Directories and you can set and change them in there or in the registry
"Isn't that the "write once, debug everwhere" language?" Tom Archer on Java...
|
|
|
|
|
Anybody knows how to mannually send the WM_SIZE message to a window given the handle of that window.
In other words, what is the params for SendMessage(WM_SIZE, ...,...)?
|
|
|
|
|
LRESULT CALLBACK WindowProc(
HWND hwnd,
UINT uMsg,
WPARAM wParam,
LPARAM lParam
); wParam
Specifies the type of resizing requested. This parameter can be one of the following values.
SIZE_MAXHIDE
Message is sent to all pop-up windows when some other window is maximized.
SIZE_MAXIMIZED
The window has been maximized.
SIZE_MAXSHOW
Message is sent to all pop-up windows when some other window has been restored to its former size.
SIZE_MINIMIZED
The window has been minimized.
SIZE_RESTORED
The window has been resized, but neither the SIZE_MINIMIZED nor SIZE_MAXIMIZED value applies.
lParam
The low-order word of lParam specifies the new width of the client area.
The high-order word of lParam specifies the new height of the client area.
You can use the LOWORD , HIWORD , MAKELPARAM , or MAKEWPARAM macros to assemble the wParam and lParam paramters.
Jeremy L. Falcon
"You do not know the power of the dumb side."
<nobr>
Homepage : Sonork = 100.16311 Maybe my mangling might misguide malicious miscreants momentarily?
|
|
|
|
|
If you are interested, you can simply call SetWindowPos or MoveWindow to change the size of the window as well, and windows will take care of the message sending for you.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
I'm writing an application which allows the user to set options in a property sheet with a few property page. The problem I'm having is with data validation. For each of the property pages, I've added some data validation when the user click the 'ok' button, i.e MyPropertyPage::OnOk()
The problem I'm having is that although the data validation is done, i.e
if (m_strName == "")
{
AfxMessageBox("Please enter a name!");
return;
}
when the OnOk() function exits from the return statment of the name check, the property sheet is closed?
I've tried commenting out
// CPropertyPage::OnOK();
to stop it called this method from the parent, but it is still called?
What I want is for the property sheet to stay modal, if the data entered is not valid.
Any help would be much appreciated.
Robert
fargo2k@hotmail.com
|
|
|
|
|
Override the CPropertySheet::OnApply
and set the modified flag
and after test if u want to return
return true else return false.
|
|
|
|
|
I am writing a console program that will go to a database at certian intervals. Basically, I am trying to implement an automated email system for expired records. My question comes when trying to decide between using a Timer or just have the program use Sleep().
So I want the program to check the database every x number of minutes (probally every hour) and see if anything needs to be sent.
My restrictions are that it has to be able to run on win98 and higher.
Any suggestions. Right now I am leaning toward Sleep(), but I am not sure if that is a viable business app solution.
Thanks in advance,
***********************
Tony Fontenot
Recreational Solutions
tony@recsolutions.com
***********************
|
|
|
|