|
Will this do?
http://www.codeproject.com/useritems/changerowheight.asp
|
|
|
|
|
|
Anyone know how I could set the Zorder of my window or how i would go about setting an application or window behind the desktop icons?
Any ideas, theories or opinions would be great,
Ryan
|
|
|
|
|
Hello, the codegurus around the world.;)
I'm curious why you need this kind of capability in your application?
Have a nice day!
-Masaaki Onishi-
|
|
|
|
|
im going to make a custom desktop for myself. And was just wondering if their was away to get the desktop icons to still show. Its not a big deal I will probably just make it go full screen over my desktop.
Pretty much going to make something like Stardocs ObjectX or DesktopX
|
|
|
|
|
No, for two reasons. 1) The desktop window is the parent of all top-level windows, and 2) The desktop is a list control - the icons aren't on their own plane in the Z order.
--Mike--
http://home.inreach.com/mdunn/
"The Earth is doomed." -- Rupert Giles
your with and
|
|
|
|
|
Hi,
I just installed the latest Platform SDK, aug 2001 release. I've integrated it in Visual C++ 6.0 by adding the SDK include and lib directories before the old ones, like the documentation says. But i still can compile code using the UpdateLayeredWindow function it still give an error C2065 "UpdateLayeredWindow" : undeclared identifier.
What is wrong ? Any clues ?
Best regards.
Johan Janssens
JJanssens@mail.ru
|
|
|
|
|
That's a Win2000 function ? Have you set WinVer properly ? If you don't do the #defines to say you're compiling for Windows 2000, it's probably being #ifdef'd out.
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
|
A comment on the part of the FAQ addressing the SDK Update vs. full download via FTP: It's possible to download the full SDK from the ms site. At http://www.microsoft.com/msdownload/platformsdk/sdkupdate/ you just click "Full Download" in the menu band. The rest is trivial.
Cheers
Steen.
"To claim that computer games influence children is rediculous. If Pacman had influenced children born in the 80'ies we would see a lot of youngsters running around in dark rooms eating pills while listening to monotonous music"
|
|
|
|
|
Thanks, Steen. MS must've added that full download link recently; it wasn't there when I first went to the SDK Update site.
--Mike--
http://home.inreach.com/mdunn/
"The Earth is doomed." -- Rupert Giles
your with and
|
|
|
|
|
Sirs,
this is my first COM adventure so I need your advise.
I have an in process server with lots of interfaces and even more methods in it.
The manufacturer of the dll provides a sample code snippet of how to get pointers to all the interfaces:
//First object
HRESULT hr = ::CoCreateInstance(...
if ( !FAILED( hr ) ) {
//First interface
hr = pIUnknown->QueryInterface(...
if ( !FAILED( hr ) ) {
//Second interface
hr = pIUnknown->QueryInterface(...
if ( !FAILED( hr ) ) {
//Third interface
hr = pIUnknown->QueryInterface(...
if ( !FAILED( hr ) ) {
...
//Here comes the code that uses the interfaces
...
} else {
...//Third interface failed
}
} else {
...//Second interface failed
}
} else {
...//First interface failed
}
} else {
...//CreateInstance failed
}
Why are the QI calls NESTED? I tried putting them after each other but the same code taken from the nested structure didn't work (Runtime library: abnormal program termination) although all interfaces were succesfully created.
I would like to create the appropriate interfaces in my dialogs' OnInitdialogs and release in the OnDestroyWindow. Is that possible? Any sugggestions?
Thanks for your help in advance.
Bunburry
A subject that is beautiful in itself gives no suggestion to the Artist. It lacks imperfection. (O.Wilde)
|
|
|
|
|
Hi all!
Let's say I have 5 combo boxes in 1 dialog box. Instead of having 5 different functions to control the OnSelChange() events of those combo boxes, can I just have 1 function to handle all 5 combo boxes?
I guess what I am asking is that if there exists a function call so that you can tell which one sends the request.
Thank You
Vu
vucsuf
|
|
|
|
|
You can call CWnd::GetCurrentMessage() which will return the MSG struct for the notification message. Combobox notifications are sent with WM_COMMAND, so you can grab the control ID/HWND from wParam and lParam.
--Mike--
http://home.inreach.com/mdunn/
"The Earth is doomed." -- Rupert Giles
your with and
|
|
|
|
|
Hello, the codegurus around the world.;)
The other way is that you create only one OnSelChange(), and assign this
function inside the message map. That is, all five ComboBoxes share one
OnSelChange(). (Or create your own function associated the message)
And, we can check which ComboBox get the input focus when this message
is checked.
I guess that this works.
Have a nice day!
-Masaaki Onishi-
|
|
|
|
|
Hello, i am trying to begin in Win32 programing and wondering where some good win32 resources are to help begin in it (not books). And if you know a really good book on it please let me know, although im primarly looking for web (free resources) since i dont have $60+ to shell out.
Also MFC but i think its a good idea to learn win32 before mfc.
|
|
|
|
|
I don't think it's so great to learn Win32 first, I found it better to go back and learn Win32, now I appreciate all the ways MFC made it easy to learn by simplifying tasks. A bit like Stroustrup saying you should learn C++ before C ( not that I've ever done C ).
However, THE Win32 reference is Programming Windows by Charles Petzhold. You'll have trouble finding much on Win32 on the web, it's 99.99% MFC. I know, because we're not using MFC in our current project, and my only sources of info are MSDN, Petzhold and asking questions here. Not many articles are helpful because they all use MFC.
Windows Developers Journal is a good source of Win32 info, they rarely print MFC articles, except in their annual MFC issue.
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
I use a CSocket derived class with a derived CWinThread class and use CArchive with it. For some yet unknown reason Send() locks after a while of running (hours). The opened socket has communication initiated from both client and server at times, if that helps. (Server sends tiny data once per second, client sends kB data occasionally, like every 10 seconds or so, plus both sides sends an ACK byte for every command)
Anyway, since I cannot find the reason of the locking, I want to get around the locked state. I want to make something from the outside and would like to have an OnIdle timer reset at intervals in the CWinThread. A parent thread will check this timer and if it isn't reset in reasonable time (seconds) the parent thread will call CancelBlockingCall() on the locked socket.
Now, will this work? Isn't it illegal to call the CSocket object function from another thread?
|
|
|
|
|
From my own experience CSockets simply aren't reliable enough for programs that need to run continuously. The best "workaround" is to use Winsock2 API directly. In my own project, I wrote a "wrapper" class to provide a CSocket-style interface so I didn't have to change the main code too much.
|
|
|
|
|
*shrug*, yes, I've read this before... if I could only understand why it's locking I think we could use CSocket. We do use it in similar applications that doesn't communicate so much.
|
|
|
|
|
I know wireless is a big topic these days, so this might interest some of you. To send SMS wireless messages to cell phones and pagers from a variety of Visual C++ applications, you might want to try our company Simplewire. There is a Developer Program at http://devprogram.simplewire.com or just go to http://www.simplewire.com.
We have SMS Software Development Kits in many versions, including a very easy to use ActiveX version. The ActiveX SMS SDK will run inside ASP pages, Visual C++ Projects, Internet Explorer, Visual Basic, Delphi, Powerbuilder, Microsoft Office, or any other environment that support ActiveX COM objects.
Then you can use Simplewire's network to connect to hundreds of networks. Hope this may help some of you who are looking to get into wireless. The Developer Program is completely free, so feel free to try it.
I've included a little source code so you can get a feel for how things embed into your app with the component.
#include <iostream.h>
#import "SimplewireSMS.tlb"
int main(int argc, char* argv[])
{
// Initialize COM
CoInitialize(NULL);
// Instantiate SMS Object
Simplewire::ISMSPtr pISMS;
pISMS.CreateInstance("Simplewire.SMS");
// Subscriber Settings
pISMS->PutSubscriberID("123-456-789-12345");
pISMS->PutSubscriberPassword("Password Goes Here");
// Message Settings
pISMS->PutMsgPin("+1 100 510 1234");
pISMS->PutMsgFrom("Demo");
pISMS->PutMsgCallback("+1 100 555 1212");
pISMS->PutMsgText("Hello World From Simplewire!");
// Send Message
cout << "Sending message to Simplewire..." << endl;
pISMS->MsgSend();
// Check For Errors
if(pISMS->GetSuccess())
{
cout << "Message was sent!" << endl;
}
else
{
cout << "Message was not sent!" << endl;
cout << "Error Code: " << pISMS->GetErrorCode() << endl;
cout << "Error Desc: " << pISMS->GetErrorDesc() << endl;
}
// Cleanup
pISMS.Release();
CoUninitialize();
return 0;
}
Hoping this helps!
Bob
|
|
|
|
|
How to rebuild icons cache in WIN98?
|
|
|
|
|
Can I use into ATL project in dll that I wrote in mfc (by attach the lib file and the header file of that to the ATL project) ?
So that my ATL will import functions from this mfc dll.
because I need to provide this dll for delphi and I dont know how to write all this project in ATL .
So the dll that will get from this ATL will be wrap to the mfc dll.;)
What do you say , Christian Graus
|
|
|
|
|
Yes, but when you are creating the ATL Project you need to check MFC Support....
You will have no problem with that.
Cheers!!!
Carlos Antollini.
|
|
|
|
|