|
When I try to launch the HtmlHelp API function from a dialog box the window seems to be created but it is not shown. After that I have lost control of the help window and can no longer launch it from other parts of the program.
The program is an MFC Dialog app. I can successfully launch the help window from the main dialog. I'm only having trouble from a child modal dialog.
Here's how I am calling the function...
HWND hwnd = HtmlHelp(::GetDesktopWindow(),
".\\MyProgHelp.chm", HH_DISPLAY_TOPIC, NULL);
Thanks for any help!
|
|
|
|
|
Hi
Does anybody know if there is a way to control how opaque a window is?
Could I make a window e.g. 50% opaque or at least make an image in a window 50% opaque?
Thanks in advance.
/Per
|
|
|
|
|
You'll need the platform SDK and Windows 2000 ( or XP, I guess ). I forget the call, but I can look it up for you if you haven't found it.
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.
|
|
|
|
|
This oughta do it
DWORD dwExstyle = GetWindowExStyle(hwnd);
SetWindowLong ( hwnd, dwExstyle|WS_EX_LAYERED );
SetLayeredWindowAttributes ( hwnd, 0, 128, LWA_ALPHA );
--Mike--
http://home.inreach.com/mdunn/
Trillian: What are you supposed to do with a manically depressed robot?
Marvin: You think you've got problems. What are you supposed to do if you are a manically depressed robot?
|
|
|
|
|
I would like to know how to add dynamically nodes to a parent item from a context menu.
From a choice in the context menu of the static node, the administrator can add an element in the scope pane.
I tried from the function "OnMenuCommand(IConsole *pConsole, long lCommandID)", to add a children but I did not make a success..
Note: I don't use ATL. Only COM and MFC.
Thank you for your help....
|
|
|
|
|
hello, i'm making a multifunctional addressbook. But nobody would use it if you'd first have to type all of your email addresses and stuff from your addressbook to the program. So i need a way to extract the emailaddresses and possibly other data from the microsoft address book automatically( you know the one that outlook express uses too)
Thanx
T.
Kuniva
Want, take, have.
|
|
|
|
|
Look at this in MSDN, it's a hole API implementation of an Address Viewer
Address Book Viewer Platform SDK: MAPI
|
|
|
|
|
In my app i declare a pointer as a member variable(double *pTab;). This pointer will be used as a pointer on an array of double. In one of the member function, i want to do some calculation which do affectation like that:
for(i=1;i<=n;i++)
{
*(pTab+i)=Value_i;
}
I don't want that this function return value so i decide it will be type "void".
And now i want to use this function in another member method. So, if i call the first function, i would like to know if i will be able to get one of specific value of the array.
For example, could i just return the value *(pTab+i2)?
thanks in advance for your help
gerald
|
|
|
|
|
I have to computer connected use line directly without any hub and switch.
These computer all have 3c509-TX network adartpter. I set both 802.1p and flow control enabled in network setting.
I want to know wheather I can test GQoS API in winsock2 in this situation.
Can you give me some help?
How to test GQoS API in winsock2?
How to understand QoS template such as g711?
Thanks very much!!!!
|
|
|
|
|
Hello, the codegurus around the world.;)
Check this.
MSDN Magazine April issue:
Winsock 2: QoS API Fine-Tunes Networked App Throughput and Reliability
http://www.msdn.microsoft.com/msdnmag/issues/01/04/QOS/QOS.asp
Have a nice day!
-Masaaki Onishi-
|
|
|
|
|
I want a Killer App that will make me rich and famous and get me all the girls. Can someone write it for me?
Michael Martin
Pegasystems Pty Ltd
Australia
martm@pegasystems.com
+61 413-004-018
"Don't belong. Never join. Think for yourself. Peace"
- Victor Stone
|
|
|
|
|
Here's a starting point for you. Bill Gates will pay you a lot of money for this. I'd forget about the money and fame, just ask for the girls.
int main()
{
if(IsLinuxInstalled())
{
DeleteLinux();
InstallWindowsXP();
}
}
Michael
|
|
|
|
|
That's a good start but it needs some bells and whistles if I'm going to sell it to Bill. Can you add them for me?
Is Bill the man to see for the girls?
Michael Martin
Pegasystems Pty Ltd
Australia
martm@pegasystems.com
+61 413-004-018
"Don't belong. Never join. Think for yourself. Peace"
- Victor Stone
|
|
|
|
|
int main()
{
if(IsLinuxInstalled())
{
for(int nLoop = 0; nLoop < 25; nLoop++)
PlayBell(nLoop);
DeleteLinux();
InstallWindowsXP();
SoundWhistle();
}
return 1;
}
>Is Bill the man to see for the girls?
Sorry, I was getting confused between Bill Gates and Bill Clinton. See Clinton for the girls, Gates for the money. Don't forget to remove the stains afterwards though.
Michael
|
|
|
|
|
Hi,
Does anyone know if there is a way to add a flat, coloured scroll bar instead of the default grey, 3D one to a TreeView/TreeCtrl ?
I've tried loads of things such as superclassing as well as trying to capture the WM_CTLCOLORBTN/WM_CTLCOLORSCROLLBAR message but all to not avail. The GetScrollBarCtrl method always returns NULL for this type of view as well.
I've even tried capturing the WM_HSCROLL event in OnHScroll but the value of the CScrollBar* parameter returned by this is always NULL so you can't get a handle to it for subclassing.
Any help would be greatly appreciated,
Thanks,
Matt
|
|
|
|
|
Does anyone know if it is possible to copy and paste text AND PICTURES from IE to Word?
The HTML clipboard format seems to only support simple HTML markup without graphics, but it does not explicitly say this anywhere.
|
|
|
|
|
Hi, all.
========
I want my app to support unicode.
There for I want to know the unicode structure.
Unicode characters are typed as short (2 * char ).
My guess is...
that the short is the character number in the ascii table .
My friend's guess is...
that the 1st char is the table type ,
and the 2nd char is the character number in the ascii table .
Can some please enlighten me ?
thanks.
BTW: come to #CodeProject on DalNet (mIRC)
|
|
|
|
|
Hi
For the first 255 charachters the unicode codes matches the ansi table. Instead of having different tables with 255 charachters each unicode is one big table with roughly 65000 charachters covering the worlds all different languages and some special symbols aswell.
/Per
|
|
|
|
|
So how do I know the structure of this one big table with more then charachters?
How can I know where one language ends and the other begins ?
BTW: come to #CodeProject on DalNet (mIRC)
|
|
|
|
|
|
You could look in the Charachter Map in your accessories. Some fonts supports Unicode. I'm not sure but I think you have to have w2k to be able to see the Unicode charchters.
/Per
|
|
|
|
|
how do i link or mix fortran code to visual c++? the article in the msdn isn't making any sense at all...
thanks...
|
|
|
|
|
A thread is created by AfxBeginThread(...) in my project. How shall I know that the thread has already quit when I own the point to the thread?
|
|
|
|
|
Use this function
BOOL GetExitCodeThread(
HANDLE hThread, // handle to the thread
LPDWORD lpExitCode // termination status
);
if ( lpExitCode == STILL_ACTIVE )
// The thread is running
else
// The trhad has finished and lpExitCode contains the return code
|
|
|
|
|
Use something like this
BOOL HasAlreadyQuit(CWinThread* pThread)
{
return ::WaitForSingleObject(pThread->m_hThread,0)==WAIT_OBJECT_0;
}
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|