|
I'm creating a Window using CreateWindow ( i.e. no MFC ) and finding when I resize it I cannot go below a certain width. It's a toolbar, and the minimum width is about 1 1/2 as wide as my buttons, so looks like hell. Is there any way to set this ?
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
|
|
|
|
|
Hi Christian,
You need to capture the WM_GETMINMAXINFO and handle it yourself, The default window proc for this sets it to a small(ish) value, but you can set it to whatever you like.
Cheers,
Nick
|
|
|
|
|
Cool - thanks Nick.
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
|
|
|
|
|
Does anyone know how to correct this problem when running Vis C++ in Win2k-->Receive
main.obj : unresolved external symbol "function being called"
for every windows api call i make.
ex. main.obj : error LNK2001: unresolved external symbol __imp__ShellExecuteA@24
just replace ShellExecuteA@24 w/ one listed below and you have the error i receive.
SHQueryRecycleBinA@8
SHLoadInProc@4
SHInvokePrinterCommandW@20
SHInvokePrinterCommandA@20
SHGetSpecialFolderPathW@16
SHGetSpecialFolderPathA@16
SHGetSpecialFolderLocation@12
SHGetPathFromIDListW@8
SHGetPathFromIDListA@8
SHGetPathFromIDList@8
SHGetNewLinkInfo@20 i have included the windows.h
|
|
|
|
|
I'm pleased you registered/signed in.
Link to shell32.lib as I've said twice before. If you don't know how to do that, you should say so, rather than just asking the same thing again.
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
|
|
|
|
|
Christian,
he didnt register
Still an anonymous post [but he's given a name]
Nish
|
|
|
|
|
Put Shell32.lib in your Object/Library modules list
Nish
|
|
|
|
|
Does anyone know how to correct this problem when running Vis C++ in Win2k-->Receive
main.obj : unresolved external symbol "function being called"
for every windows api call i make.
ex. main.obj : error LNK2001: unresolved external symbol __imp__ShellExecuteA@24
just replace ShellExecuteA@24 w/ one listed below and you have the error i receive.
SHQueryRecycleBinA@8
SHLoadInProc@4
SHInvokePrinterCommandW@20
SHInvokePrinterCommandA@20
SHGetSpecialFolderPathW@16
SHGetSpecialFolderPathA@16
SHGetSpecialFolderLocation@12
SHGetPathFromIDListW@8
SHGetPathFromIDListA@8
SHGetPathFromIDList@8
SHGetNewLinkInfo@20 i have included the windows.h header file.
|
|
|
|
|
Either you've already had the answer, or two people have asked the same question in a matter of hours. If you took 30 seconds to register you'd get email notification when people answer your questions.
Include shell32.lib in the libraries for your project.
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
|
|
|
|
|
I want to make a simple real audio, namely play, stop, pause....
Do you know?
if you know, please send the source to me !!
Thanks.
|
|
|
|
|
Has anyone here done anything like that?
I remember some code here which drew some lines and added an action to each any any of those lines.
Have anyone here got any sample of similar stuff?
I would like to add an action to a drawn item...
If it was made simpel I couldn't have been any happier
|
|
|
|
|
Either make your drawing strokes 'objects' so you get a message when you bash it with the mouse.
Should I say how? I just found this group and going by some of the items on the lists I think there's a fair depth of knowledge. So should I assume you know how to create (in this case, transparent-borderless objects)?
Or. You could 'remember' where your drawing strokes (or lines) are so your mouse click/possition gives you information you need to know which line is clicked. This one is a bit naff since you practically create the 'object' in the structure that holds the stoke/line information.
We do it for the joy of seeing the users struggle.
|
|
|
|
|
Yeah, I see what you are thinking.
'Been thinking somewhere along in the same alley as you.
In the code I saw the creator of that code used some sort of a dynamic structure to maintain the amount of objects currently reaction to actions. (An then also their respective addresses onto the view etc)
I don't know WHY I ask questions where I seem to get answers according to my own ideas...
Thanks anyways!
|
|
|
|
|
I think we often ask questions simply to bounce our idea off another head. Thats the joy of team programming, but we often don't work in teams so need a forum such as this to do the same job.
We do it for the joy of seeing the users struggle.
|
|
|
|
|
This is a really broad question -- I have an ongoing but rare crash in RtlAllocateHeap (HeapAlloc).
I am wondering if anyone has any good suggestions on how to gather more information on this.
I realize that my question is vague.....
-p
|
|
|
|
|
Generally this problem comes up when you are trying to delete messed up memory in debug mode.
This means that you have created something with new (most probable an array) and have assigned values outside the bounds of that memory. When operator delete is called in debug mode it first checks to make sure the memory is intact (debug new adds a couple of padding bytes) by checking the boundary of the memory, if it is messed up it will throw an exception.
|
|
|
|
|
If I add an environment variable to NT thru the add environment variable dialog screen, it gets set when I hit the ok button. If I try and do it thru the registry programmically it does not get set right a way. After I do a RegSetValueEx is there something else I need to do to get windows to refresh the environment variables?
Thanks
Tom Wright
Programmer
tawright915@yahoo.com
|
|
|
|
|
After I do a RegSetValueEx is there something else I need to do to get windows to refresh the environment variables?
Reload them (e.g. using a new process)? They are not connected to the CRT environment variables AFAIK.
/Mike
|
|
|
|
|
For instance if I add a value to the end of the PATH variable thru the environment dialog it is set when I hit OK. If I add the value in my program to the end of the PATH variable then it's not set right away.
I've tried sendmessage to tell the system there's been a change but that doesn't seem to work either. Any suggestions
Thanks
Tom Wright
Programmer
tawright915@yahoo.com
|
|
|
|
|
RegFlushKey ?
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Is it possible to compile programs in VC++ 6.0 to look like the new Windows XP programs?
THX
XP
|
|
|
|
|
|
That was interesting, but a real sample would be better. They lost me when they mentioned the XP SDK Beta 2 - no beta SDKs allowed on our production machines here.
Is there a way to force a non-XP app to use the XP look, without including special headers?
|
|
|
|
|
I haven't time to check this on VC6, but it seems that you only have to create a xml manifest, and add it to resources. The only thing from XP SDK is RT_MANIFEST #define.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
You need the latest SDK provided on the MSDN CD's or downloaded from the MSDN web site. The article is the best real world sample I've come across. Just cut and paste the xml manifest and rename to match your exe name. Add CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "YourApp.exe.manifest" into your .rc2 file and compile.
>Is there a way to force a non-XP app to use the XP look, without including special headers?
Not that I'm aware of. You need to use the manifest file to tell XP to draw your application using the XP theme.
Michael
|
|
|
|