|
Hi,
If anyone have any example about DAO please send to:
hadi_rezaie@hotmail.com
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
I have an application that subclasses an LBS_OWNERDRAWFIXED listbox window. When
I subclass the window it seems to break the listbox so that horizontal scrolling
and painting do not work correctly (perhaps other things as well that I have not
gotten to yet. Assuming that it was a problem with my subclass procedure I
reduced it to the following code:
//* The listbox definition in the dialog resource
LISTBOX ID_USERS_LISTBOX, 3, 22, 324, 185, LBS_OWNERDRAWFIXED |
LBS_MULTICOLUMN | LBS_NOINTEGRALHEIGHT | WS_VSCROLL |
WS_HSCROLL | WS_TABSTOP
//* Subclass the listbox earlier in the code....
fpOldListProc = (FARPROC) SetWindowLong(hWndList,
GWL_WNDPROC,
(DWORD)ListProc);
//* Listbox subclass procedure
LRESULT APIENTRY ListProc( HWND hWnd, UINT Message, WORD wParam, LONG lParam)
{
return CallWindowProc((WNDPROC)fpOldListProc, hWnd, Message, wParam, lParam);
}
with the same result. It is worse in Win2000 than in Win/98 but basically the
same kinds of problems are there. In Win2000 the items the space below the
bottom row in the listbox and below and to the right of the last row of items is
not repainted as well as horizontal scrolling not working correctly.
I've tinkered with this for a week and I'm at a loss. Any suggestions or
pointers would be greatly appreciated.
Thanks
Neil
Neil Lamka
neil@meetingworks.com
|
|
|
|
|
http://support.microsoft.com/support/kb/articles/Q197/6/90.ASP
http://msdn.microsoft.com/library/techart/msdn_mfcclip.htm
Also try to do the following:
1. send WM_SETREDRAW and turn off the drawing of the listbox before subclassing
2. Do subcalssing
3. send WM_SETREDRAW to turn drawing back on
4. in your ListProc add the following:
if (Message == WM_NCDESTROY)
{
//return old window proc...
SetWindowLong(hWnd, GWL_WNDPROC, (DWORD)fpOldListProc);
}
Mh2
|
|
|
|
|
I finally had a chance to try your suggestion and it did not seem to help. Any other places you would suggest I look or things I should try?
The strange thing (to me at least) is that reducing the subclass procedure to simply return the default procedure reply (as my example shows) results in the same problem.
Thanks
Neil
Neil Lamka
neil@meetingworks.com
|
|
|
|
|
I need some help coming up with some rock solid error checking and return-code checking for my vbscripts. Currently I am just checking for err.num each time I do some action. Does anyone have any examples they code send me on what industry best practice is.
Thanks
Ben O
|
|
|
|
|
hi,
I'm a budding systems administrator. I'm trying to learn scripting. Now what I want is a script that shuts down the NT4 Server at a certain point of time by stopping all the services running before doing a graceful shut down.
Since i'm new to scipting I would like to take guidance in doing so. SO can neone provide me a script as I have no idea as to how to start, so that I can improvise on it by learning from the script before trying it out with other features.
SAI
SAI
|
|
|
|
|
|
Sorry Uwe - I didnt realise this person had posted the same question
elsewhere on CP - so I sent a huge reply showing the basic way of doing
it - but I'll certainly look at your utility for MY future use
Garth
Garth Lancaster
Integration Engineer
Sydney Australia
|
|
|
|
|
hi garth,
I was actually surfing so I ended up posting it twice. Please excuse for the inconvenience caused to u.
SAI
|
|
|
|
|
hi garth,
I was actually surfing so I ended up posting it twice. Please excuse for the inconvenience caused to u.
SAI
|
|
|
|
|
We're using a series of tables in Sequel Server. These tables are all translated into XML for use in our application (Internet Explorer based). Our application uses these XML documents as data islands and uses the Microsoft Parser to rerieve whatever data is needed. However, in a lot of cases, I essentially need to query these XML documents in the same way I would query a regular database. Anyone know anything about this?
|
|
|
|
|
Maybe you could use XQL (XML Query Language) with the selectNodes method?
|
|
|
|
|
Use XSL:
http://msdn.microsoft.com/library/psdk/xmlsdk/xslp8tlx.htm
Tomasz Sowinski -- http://www.shooltz.com.pl
|
|
|
|
|
look at XPath specifically
|
|
|
|
|
My application needs administrator privileges although the user logged on has only user privilege. I want to change the privilege to administrator at startup of the application.
How can I do this?
Thanks
|
|
|
|
|
Use LogonUser/CreateProcessAsUser. Or write a service that runs with admin privileges and communicates with the application.
Tomasz Sowinski -- http://www.shooltz.com.pl
|
|
|
|
|
I am trying to create an application that will shut down all ports and disable internet access but I have not been able to do so. First of all I don't know how to go about blocking ports at all; while I did try to use blocking sockets they won't work if port is already in use WSAALREADYINUSE or something. Second of all I don't think that that would be efficient method to block internet access as I would probably have to open thousands of sockets in order to block thousands of ports.
What I realy need is a way to disable internet (dial-up AND LAN) access by simple click of a button even if computer already has internet and server applications running, while preserving LAN operational, and also to be able to enable internet access by simple click.
Please help me with this, I was searching net and books for weeks now but I still didn't come up with satisfying solution.
Thank you, Sasha.
|
|
|
|
|
API Hooking by DLL Injecting Revealed - WinSock2 Hook
check out this tool and you`ll be surprised ! you can hook all apps with ws2_32.dll and when they call WSAStartup()
you return SOCKET_ERROR !
or disable the connect function
//rate me or hate me
I am the mighty keeper of the book on knowledge . Contact me to get your copy .
|
|
|
|
|
Does anyone know how to create MSI (installation) files?
I cannot find any information about it.
|
|
|
|
|
The only way I know is to use InstallShield Professional Windows Installer Edition.
|
|
|
|
|
The native way is to use Windows Installer SDK which comes with Platform SDK. This way is very flexible and powerful but not easy.
Alternativly you can use Visual Studio Installer (can be downloaded from msdn.microsoft.com) - very simple but so limited.
And some non Microsoft tools like a Install Shield Windows Installer Edition.
Magomed G. Abdurakhmanov
+------------------------
| http://mickels.iwt.ru/en
|
|
|
|
|
|
<<< In the name of GOD >>>
Hi all.
I want to set lock and encrypt for my cd.
for example:
user can't copy my CD program in other cd ...
do you have any idea ?
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
Rather hard to do. Nowadays, programs can copy even bad blocks.
I haven't heard about the cd that could not be copied. It is just
a matter of proper cd copy program.
The strong protection, is (that's my opinion) hardware key.
The best protection, is to make many small protections and checks
(each one different) in many places in Your app.
For games, such protection routines can be launched every few stages.
|
|
|
|
|
Yeah, thanks for your help.
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
<<< In the name of GOD >>>
Hi all.
I need source code about Game.
It game must be like Street Fighter ...
Your source code must be write by DirectX 7.0 and by VC++
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|