|
Alternatively you could make wrapper classes for the members which on their = operator would call whatever is needed to be called.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
|
|
|
|
|
HI
I want to implement a cross layer approach. i want to pass the network information such as delay from the MAC layer to Network layer. Can you tell me the way i am new to this. i am using linux (fedora). I think some system call will do the trick. Correct me if i am wrong. Any help in this regard is greatly appreciated.
|
|
|
|
|
CMyDlg1 *pDlg = new CMyDlg1();
pDlg->Create(IDD_MYDLG1, this);
pDlg->ShowWindow(SW_SHOW);
CRect rect1(0,0,0,0), rect2(0,0,0,0);
pDlg->GetClientRect(&rect1);
pDlg->MapDialogRect(&rect2);
|
|
|
|
|
|
I am a freshman in VC kingdom, Now I am developing a project about Ethernet test by VC6, to draw the result line, I used MSChart Control, by I don't know all of the propertys and methods. for example, when I ajusted the X-coordinate's label count from 10 to 20, the label titles became vertical displayment. It will make me mad now, please help me, my dear friends!
|
|
|
|
|
Hi,
I want to hide a file.So,I used the following code to hide it.
SetFileAttributes (str,FILE_ATTRIBUTE_HIDDEN);
SHChangeNotify(SHCNE_ATTRIBUTES,SHCNF_FLUSH|SHCNF_IDLIST|SHCNF_PATH
,str,NULL);
Where str is the path to file.It is not hiding completely.It looks as blurr untill i refresh that particular folder maunually.How can i solve this problem.
|
|
|
|
|
revanth1985 wrote: .It is not hiding completely.
What does SetFileAttributes() return? If 0 , have you called GetLastError() ?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
It is returning 1.It is not failing.But the hidden file is not hiding completely(looking as blurr) untill i refresh.
|
|
|
|
|
BUMP
good
modified on Friday, January 2, 2009 4:26 AM
|
|
|
|
|
I'm trying to to make PART of a window transparent AND click-through.
I'm using the following code to show/hide the form (actually making it fully transparent/opaque):
SetWindowLongPtr(hWnd, GWL_EXSTYLE, GetWindowLong(hWnd, GWL_EXSTYLE) | WS_EX_LAYERED);
//Hide the whole form
SetLayeredWindowAttributes(hWnd, COLOR_KEY, 0, LWA_COLORKEY | LWA_ALPHA);
//Show the form
SetLayeredWindowAttributes(hWnd, COLOR_KEY, 255, LWA_COLORKEY | LWA_ALPHA);
This works fine, However:
I also have part of the window colored in COLOR_KEY. This code makes this part transparent but not click-through.
My question is: how do I make this part of the window (again, colored in COLOR_KEY) transparent AND click-through?
Note that I don't want the whole window to become click-through, but only this part.
Thanks
|
|
|
|
|
The above code sets the window portion (painted by COLOR_KEY) transparent and click-through properly. Please check whether the actual color (used to paint the window) is plain (doesn't include any shade/shadow of COLOR_KEY) color.
|
|
|
|
|
Thanks Malli_S for your quick reply.
The actual color you mentioned is indeed the color key I set in SetLayeredWindowAttributes().
The evidence is that I don't see the colored parts (it is transparent, but unfortunately not click-through)
Thanks
|
|
|
|
|
Do a small test. Open the Notepad and put it behind your application's transparent area. And check whether the cursor changes to 'I'. This is because the specified color code does make window transparent but not the shade of color it has. If on any of the point, the cursor doesn't change, indicates the presence of the other color on that pixel. I just tested the same thing by changing the color into slight shady.
|
|
|
|
|
Actually shading doesn't work here at all. Because it's one color key (as opposed to alpha channel for instance), and a unique one, every pixel not in that color will be visible.
In my situation, I am using a window as a child control of IE. This makes click-through verification quite easy. The color-key colored parts are fully transparent and therefore I can see the IE page content behind it. However, clicking on hyperlinks for example is impossible.
Any ideas?
Thanks again
|
|
|
|
|
Hi,
How can I disable the message 'Failed to Launch Help' for unhandled help IDs in an MFC application and Dispalay default page of the help file? this message is displayed when I press Shift+F1 on some buttons which I've not added help for them.
|
|
|
|
|
try overriding
void CWinApp::WinHelp(DWORD dwData, UINT nCmd);
all help events eventually are handled there.
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
AfxHtmlHelp is being called inside of it. I can not call it. linker says unresolved external symbol. Do you know what should I do?
|
|
|
|
|
I checked in Google and I couldn't find this function AfxHtmlHelp. Are you sure it's not just HtmlHelp?
Anyway, you override CWinApp::WinHelp, so what's called inside is what *you* choose to call. Why are you trying to call AfxHtmlHelp?
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
CWinApp::WinHelp is calling pMainWnd->WinHelp(dwData, nCmd). So it is better to override CMainFrame::WinHelp
void CMainFrame::WinHelp(DWORD dwData, UINT nCmd)
{
HtmlHelp(m_hWnd, AfxGetApp()->m_pszHelpFilePath, HH_HELP_CONTEXT, nCmd == HELP_CONTEXT ? dwData : 0);
}
|
|
|
|
|
Test your application with "HTML Help Workshop". Activate "HTML help messages" in the view menu.
Collect the data for the missing HID_ messages. Create a default page in your helpfile and create aliases for the missing HID_ messages to this page. The best you can put them in a include file under the [ALIAS] and [MAP] key.
[ALIAS]
#include MissingHelp.h
[MAP]
#include MissingHelp.hm
In MissingHelp.h you can put things like:
HID_SYSTEM_EXIT = default.html
HID_SYSTEM_MAX = default.html
HID_SYSTEM_MAX_NORMAL = default.html
HID_SYSTEM_MIN = default.html
HID_SYSTEM_MOVE= default.html
In MissingHelp.hm you can put things like:
#define HID_SYSTEM_MOVE 0x1EF01
#define HID_SYSTEM_MIN 0x1EF02
#define HID_SYSTEM_MAX 0x1EF03
#define HID_SYSTEM_EXIT 0x1EF06
#define HID_SYSTEM_MAX_NORMAL 0x1EF12
|
|
|
|
|
Theo Buys wrote: The best you can put them in a include file under the [ALIAS] and [MAP] key
Can I use #include and #define statements in HTML Help Workshop projects? What should I do to be able to do that?
I have a project where we have different versions (like a Demo and a Full version), and it'd be nice to be able to change the program name according to which version I'm building, without 2 separate html help projects where this is the only difference.
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
|
Hi all.
in preview window many buttons are present like,
Print,NextPage,PrevPage,ZoomIn,ZoomOut,Close.
i want to hanle the Close button.
please tell me how can i handle it.
thanks in advance.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
There is a function called CDC::IsPrinting
When you try to close the preview window OnClose function will be called and you can check whether you have closed the window through print preview by checking the IsPrinting Flag .
|
|
|
|
|
No its not working please explain with example
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|