|
Hai !
I have created a help file for my application using HTML help workshop, i
have a button named "Help" in my application, now when i press this button or press F1 key from keyboard, i want to open the help file that i have created !!
can you plz help me with the code required ??
Thankyou !
|
|
|
|
|
why not use ShellExecute?
|
|
|
|
|
|
|
it was a good link but how to
Step 8:
Import htmlhelp.lib to your application
Right click on the Resource Files then Add Files to Folder.
Select htmlhelp.lib.
on right click of Resource file i donot get "Add Files to Folder"
can you plz explain how to add htmlhelp.lib
thanks
|
|
|
|
|
You can improta lib files :Configuration Properties->Linker->Input and on the Additional Dependencies filed you must enter lib file.
|
|
|
|
|
Thanks I could get it !!
But what happens if i run my application in a different system, its registry will not be containing data which i have entered !!
|
|
|
|
|
Its easy make it . CRegKey
|
|
|
|
|
can i assign list box with 2 control variables?
1st is control variable is of COwnerDrawListBox type (custom list box) and 2nd i want to assign control variable of type CListBox?
i tried in this way but is it giving run time error?
plz help me.
thanks in advance
|
|
|
|
|
why do you want to do such a thing?
The two controls are of different type after all.
I guess, you want to have a functionality of CListBox and COwnerDrawListBox. Is it right? If affirmative you can simply override some functions in the derived class.
Some things seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
how can i add background color to a window using its handle. Anyone plz tell me.
|
|
|
|
|
|
I want to change the background color of child window.
I have created the Child Window using CreateWindow function. Now im having only the handle of the child window. Using the handle,How can i change the background color?
|
|
|
|
|
HWND hwnd=yourchildwindow
HDC hdc=::GetDC(hwnd);
SetBKcolor(hdc,RGB(53,97,200);
|
|
|
|
|
|
Wheres problem did you use of debugger hwnd is null or hdc?
|
|
|
|
|
hWnd and hdc is pointing to some value, not NULL.
|
|
|
|
|
|
Return value of CreateWindow.
|
|
|
|
|
|
Roay wrote: hi
Hi !
|
|
|
|
|
1/ try using a more helpful subject than "hi". Though it's polite at least!
2/ what kind of window is it?
3/ is it in your own source code, or do you mean someone else's window?
Iain.
|
|
|
|
|
Iain Clarke wrote: try using a more helpful subject than "hi". Though it's polite at least
Subject: hi Iain
|
|
|
|
|
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
What kind of window you are creating?
If it is a predefined window (like, edit, static, etc.) then there are specific ways for that.
If not, you can use SetClassLong with GCL_HBRBACKGROUND to change the background color.
|
|
|
|