|
Mark Salsbery wrote: The second time your app runs, try calling ::IsWindow(hwnd) on the HWND.
I'll do it this evening.
I have noticed that when I use showwindow to make the balloon tip visible, it is shown but only part of its border and very unclearly. So I suspect that when I close it by sending wm_close button I destroy all its properties including styles and all the stuff so maybe I need to set style for the balloon tip during runtime?
|
|
|
|
|
Yes, posting a WM_CLOSE message to a window, by default, causes the window to be destroyed.
Can't you just use ShowWindow(SW_HIDE) instead of destroying the window?
Mark
"Go that way, really fast. If something gets in your way, turn."
|
|
|
|
|
I thought about it but it leaves some trace like the one when you close the balloon tip and a little part of it is still visible. Is it possible to set cursor position at the x button of balloon tip and click it programmatically?
|
|
|
|
|
hi all i want to make Toolbar for Fire Fox, i have search but found nothing related to the its development with microsoft technologies, is is not possible to do so with microsoft technologies VC++ or .net
Regards.
Tasleem Arif
|
|
|
|
|
_tasleem wrote: i have search but found nothing related to the its development with microsoft technologies
They hide that information in the documentation[^]
|
|
|
|
|
led mike wrote: They hide that information in the documentation[^]
Bastards.
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
Provided the fact that Firefox uses its own framework and hence extension mechanism are really specific and customized to that framework, I am not sure how using VS IDE will help more than the specialized tools provided by Firefox to do the job.
Following link should help.
http://www.devsource.com/article2/0,1759,1995990,00.asp
But also take a note of the authors blog
http://www.amazon.com/gp/blog/post/PLNK2OLL1EDO876SB
Regards
|
|
|
|
|
I was looking to run a function after OnInitDialog completes and has fully drawn the dialog to the screen. I am getting some good results using this method, however, not all of the dialog objects and dialog are showing up. Not to sure why either.
// stdafx.h
#define WM_MY_USER_DEFINED_MESSAGE WM_APP + 0x10
// MyDialog.h
virtual BOOL OnInitDialog();
afx_msg LRESULT OnMyUserDefinedMessage(WPARAM wParam, LPARAM lParam);
DECLARE_MESSAGE_MAP()
// MyDialog.cpp
BEGIN_MESSAGE_MAP(CMyDialog, CDialog)
ON_MESSAGE(WM_MY_USER_DEFINED_MESSAGE, OnMyUserDefinedMessage)
END_MESSAGE_MAP()
BOOL CMyDialog::OnInitDialog()
{
CDialog::OnInitDialog();
PostMessage(WM_MY_USER_DEFINED_MESSAGE);
return TRUE;
}
LRESULT CMyDialog::OnMyUserDefinedMessage(WPARAM wParam, LPARAM lParam)
{
//I would imagine that if we are here, the dialog has completley drawn by now.
//but this does not seem to be the case
Sleep(5000);
AfxMessageBox(L"ok");
return NULL;
}
|
|
|
|
|
Hey,
Just force it by calling the ShowWindow function right before you call return:
ShowWindow(SW_SHOW);
This will force the window to be displayed.
Cheers ...
|
|
|
|
|
|
aquawicket wrote: Sleep(5000);
There is no use if you put a sleep here. Remove it. When put a sleep the application will stop all processing including the painting.
Try calling the RedrawWindow() function instead of that sleep.
|
|
|
|
|
Sweet.. Got it workin..
RedrawWindow() seemed to do the trick..
I didn't realize I was halting everything with Sleep();
I figured the dialog would be drawn before it ever got to that..
Thanks everyone.
|
|
|
|
|
Hi there,
Is there the way, programmatically, set the level of acceleration for audio hardware?
I know its could be done through control panel\...\... . Can it be done by simple application?
|
|
|
|
|
|
Does this link help?
http://www.codeproject.com/cpp/ymatrix.asp
|
|
|
|
|
Anybody have any experience using OptiVec library??
Pavan
|
|
|
|
|
You could have a look at Boost's uBLAS[^] library.
Steve
|
|
|
|
|
Check MTL, (Matrix Template Library)
For curve fitting, i believe you should have a look at Levenberg-Marquardt algorithm of course, there are many algorithms you can use (No free lunch ), with respect to your needs.
Bekir.
|
|
|
|
|
Any help on the topic is appreciated
Thanks in advance...
Selva
|
|
|
|
|
Can't you do that by settings pointers to memory locations you want to read and print them out to console?
|
|
|
|
|
Hello, I'm programming in MFC and with visual studio 2005. I want to have a small toolar in my application(size of standard 16x16) toolbars. I have very nice but bigger icons that I like to place in my small toolbar but I can't. either I have to use bigger toolbars(size of standard 32x32) or I have to skew my nice icons. Can I use bigger icons(bigger than 16x16) in my small(16x16) toolbar? what is the limit?
thanks alot.
-- modified at 10:40 Wednesday 27th June, 2007
|
|
|
|
|
It's not simpler to convert your icons to 16x16?
I use the free IconoMaker[^]
|
|
|
|
|
Hello zoltan, I can convert icons to 16x16 but quality of downsized icons will be lost. I would like to see high quality but small icons. am I asking too much ?
|
|
|
|
|
Electronic75 wrote: I would like to see high quality but small icons.
Yes, that's asking too much. There's no way to magically squeeze larger icons/bitmaps down to
16x16 without some kind of pixel loss
Mark
"Go that way, really fast. If something gets in your way, turn."
|
|
|
|
|
Hello mark, but I have seen many programs that have high quality small toolbars, I'm sure you have seen them too. they can't be 16x16, for example MS WORD or MS EXCEL,... there should be a way. of course if there are more than one way, I prefer shorter way .
|
|
|
|