 |
|
 |
Hi.
Thank your code.
but how i change the default icon to my icon inside your button class?
wpw
|
|
|
|
 |
|
 |
The image files are embedded is the resource table. Simply replace the files in the directory with other images with the same filename and do a rebuild all.
Jeremy
|
|
|
|
 |
|
 |
Thanks for your nice widget.
But I have a problem when I build it , appear below
MCButton.obj : error LNK2001: unresolved external symbol __imp__PlaySoundA@12
MCButton.obj : error LNK2001: unresolved external symbol __imp__AlphaBlend@44
Debug/MCEButton.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
Could you tell why??
BYE BYE
|
|
|
|
 |
|
 |
You probably need platform sdk.
|
|
|
|
 |
|
 |
I am very appreciate for your reply.
And I already install the platform SDK.
But I don't know to include which head in my project.
Please forgive my stupid, and tell me why ?
Thank you so much.
|
|
|
|
 |
|
 |
I believe that just installing the platform sdk is not enough, you must configure your compiler to use the platform sdk directories first. Go to the options dialog in your developer studio, tools/options I think. Find the c++ include directories tab, you may have to add them in, the location of the platform sdk header files, libs, and the bin directories and make sure they are at the top of the list. I do not have a compiler on this machine so I am sorry for the vague instructions, let me know if you still cannot get it to work and which version of visual studio you are using and I can provide better instructions within the next couple of days.
|
|
|
|
 |
|
 |
Dear JJMatthews
My problem already solved, the mistake is I'm not have link this winmm.lib msimg32.lib in project setting and the interesting thing that if I use the new SDK ,appear error when bulid my program.
Anyway thanks your help very much.
PS.I use VC++ 6.0
BYE BYE
|
|
|
|
 |
|
 |
Thanks so much for that great job,
I have a problem when I add all necessary things to my project and complete every thing I get this error
error LINK2001 : unresolved externals, cannot play...
please help me .
|
|
|
|
 |
|
 |
Could you have possibly not added the libraries "winmm.lib and msimg32.lib" to the link tab in your project settings?
|
|
|
|
 |
|
 |
first thank you for bring us a so nice widget.
but i meet a problem when using the button in my project,
it is alway prompt a window to inform me that the application
encounter a assert failed in
BOOL CWnd::Attach(HWND hWndNew)
{
ASSERT(m_hWnd == NULL); // here ~~~~
ASSERT(FromHandlePermanent(hWndNew) == NULL);
// must not already be in permanent map
.......
}
in the wincore.cpp, and this occurs form the myButton.SubclassDlgItem(IDC_BUTTON1, this) function call in the OnInitDialog of my Dialog class, can you help me out? Thank you in advance.^^
|
|
|
|
 |
|
 |
One cause would be if you have more than one button on your dialog/formview and only one instance of the button class declared in your header file.
|
|
|
|
 |
|
|
 |
|
|
 |
|
 |
can you provide the latest version from September 27th 2006 ?
|
|
|
|
 |
|
 |
I have only updated the article text.
|
|
|
|
 |
|
 |
I really appreciated the classes. thank you.
Oscar TV
|
|
|
|
 |
|
 |
HI! I am Again.
when i use ur code, button font enlarge, and full button text not show.
how can i solve this? to fit a text in button.
|
|
|
|
 |
|
|
 |
|
 |
Hi!
Thanks for ur Code.
Realy Good and easy Work for us.
I am new in MFC. How can i ADD bitmap res for button?
I add bitmap in my project.
but after run my program button show dark.
whats the prob?
i am wating for ur kind responce.
Thanks again.
|
|
|
|
 |
|
 |
Ohh!
I can add it now.
Thanks.
|
|
|
|
 |
|
 |
Hi well done.
Is it possibel to use this in c# applications?
regards
Bryan
|
|
|
|
 |
|
 |
I have been wanting to mimic that thanks and well done.
|
|
|
|
 |