|
did u set style of listbox as owner draw?
includeh10
|
|
|
|
|
No, I didn't set owner draw. Archer & Whitechapel describe owner draw as a second option for handling ListViews (requiring you to draw the entire control in one fell swoop). When I check owner draw fixed in the resource editor (without making any other changes), the LVN_GETDISPINFO events that currently drive the drawing process in the content area stop being sent as well. Changing to owner draw therefore requires a complete redesign of the way the content area of the control is drawn (ouch).
Archer & Whitechapel describe custom draw as a third approach, distinct from owner draw, giving you more flexibility and less responsibility (for clipping and such), i.e. I think its something else.
|
|
|
|
|
ON_NOTIFY_REFLECT message wont work with the NM_CUSTOMDRAW message (I dont have any idea why exactly it is not ). Try it with the control's parent class with ON_NOTIFY macro.
sdgsdfg
|
|
|
|
|
How to call MFC DLL in installShield 6.x
---------------------------------------------
hi..Dear
Plz tell me How to call Dll in installshield.
there me be proble of DLL type so can you send me Sample DLL prject + Calling method ...
just one function in dll...any any any ...void abc()...
PLease Please....Please...anybody help me please...
i'm posting again & again..but no body ready to help me...Can U..please...
i hope u help me..
my e-mail is:
sumit_kapoor1980@hotmail.com
Thanks
---Sumit Kapoor---
|
|
|
|
|
If you are not getting any help, even though you post several times, you can probably conclude that noone has any example of what you want to accomplish.
You might want to see if there is any help in your Installshield documentation - there might even be a sample project. You might want to try the Installshield site. You could try Google or any other search engine.
|
|
|
|
|
Hi
I use waveOutSetVolume API to set the volume of the wave out audio I play in my application.
MSDN says : If a device identifier is used, then the result of the waveOutSetVolume call applies to all instances of the device. If a device handle is used, then the result applies only to the instance of the device referenced by the device handle.
So I use the handle I get from waveOutOpen API to change the volume of my Applcation not the system wide sound..
Simply this does not work as intended and the system wave volume changes and my code affects other programs..
code :
HWAVEOUT m_WaveHandle;
waveOutOpen(&m_WaveHandle,WAVE_MAPPER,&m_wfx,hThread->m_nThreadID,NULL,CALLBACK_THREAD);
MMRESULT res;
res=waveOutSetVolume(m_WaveHandle,MAKELONG(leftVol*0xFFFF/100,rightVol*0xFFFF/100));
any ideas to solve this ?
I use Win2000/VC++6.0
|
|
|
|
|
I have been playing around with Wave files, and I have a little console application that plays a wave file. It works fine. I wanted to create a Windows application that did the same thing, but every time I try to compile it I get a ton of errors saying that HWAVEOUT, WAVEHDR, WAVEFORMATEX and WAVEOTCAPS have a syntax error (C2061). I made sure that I copied all of the includes exactly as they are in the console app. I can't figure out why the compiler does not know about these types. Could anyone please shed some light on the situation? Thanks!
|
|
|
|
|
Who knows about how to get into hardcore scripting for online MMROPG as I want to develope and learn all at the same time, what would be the best scripting language for those games?
Jimmy
|
|
|
|
|
|
I do have to say how much I appreciate your help and if there is any learning curves that you could throw at me, that would be greatly appreciated as well. I do thank you once again. Also, how's the weather down there?
One more note, I dig your work too man.
P.S. Anyone else have any suggestions as well?
Jimmy
|
|
|
|
|
|
Well, I even donated to those guys some $$$ to show my appreciation, now the thing is to get started on this, I have no clue where to start lol. Hey stay cool down there, Washington been lil warm lately as well. How do you figure you could take an item and duplicate it ? Kind of a question I ask myself over and over. Oh yes very impressive Resume also I would say, as me being a Chief Engineer in the Glazing Industry does not compare up to that lol.
hmmmmmmmm
|
|
|
|
|
I build a empty project of win32 application and want to constuct a dll by it(just a try),my codes as follow:
#include <windows.h>
HINSTANCE g_hinstThisDll = NULL; // Our DLL's module handle
UINT g_uDllLockCount = 0; // Count
BOOL APIENTRY DllMain ( HINSTANCE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved )
{
switch ( ul_reason_for_call )
{
case DLL_PROCESS_ATTACH:
{
g_hinstThisDll = hModule;
DisableThreadLibraryCalls ( hModule );
}
break;
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}
I have set the Project->Settins->Link->OutPut:EntryPoint:DllMain and set Project->Settins->Debug:Win32.dll,But there is a link error:unresolved external symbol _main.
now I want to know whether this method is practical or not
|
|
|
|
|
if you want to create a DLL, start with a Win32 DLL project, not with a Win32 Application project.
Software | Cleek
|
|
|
|
|
I just want to the probability in this way,I have changed the entry point into DllMain,but there is a link erro (above).
|
|
|
|
|
there is more to a DLL than just a DLLMain. you also have to tell the linker to make a DLL and not an EXE . there may be other things, too. but that's what VC takes care of when you select a DLL project.
Software | Cleek
|
|
|
|
|
I have been able to print to PDF document (It's just attaching CDC to distiller printer DC). But I want to also change its first default save location.
Could I do it without buying PDF API ?
Somebody, please help me.
Hky
|
|
|
|
|
I have found it. Just now
Its setting is saved in :
HKEY_CURRENT_USER\Software\Adobe\Acrobat Distiller\PrinterJobControl
May be it can be useful for others.....
Hky
|
|
|
|
|
I am a beginier with c++ and I was reading an article to make an XP button, and I don't know how to rename the CButton... can any one help?
|
|
|
|
|
Goto your dialog class header file (*.h) that contains the button you want to change to XP style.
It will be like this :
----------------------------------------
class CMyDialog : public CDialog
{
public:
.
.
CButton m_btn;
.
.
.
};
----------------------------------------
Change "CButton" word to your XP style button class name.
For example : CButton -> CXPButton.
Don't forget to include your XP style button class header before this dialog class header.
For example : #include "XPButton.h"
Hky
|
|
|
|
|
OKi Doki
thanks for helping me
but I did every thing, and i put the XPBtton.h inside the project, but when it compile it i got these errors
boya.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall CXPButton::~CXPButton(void)" (??1CXPButton@@UAE@XZ)
boyaDlg.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall CXPButton::~CXPButton(void)" (??1CXPButton@@UAE@XZ)
boyaDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall CXPButton::CXPButton(void)" (??0CXPButton@@QAE@XZ)
Debug/boya.exe : fatal error LNK1120: 2 unresolved externals
any idea?
|
|
|
|
|
May be compiler can't find "definition" of constructor and destructor. Check your constructor and destructor for its completeness and validness declaration (usually in .h file) and definition (usually in .cpp file).
If it still can't help, confirm me.
Hky
|
|
|
|
|
Thanks man.
I put the XPButton.h and XPButton.cpp inside my project and then it worked, i forgot to put it inside my project folder,
put thanks for helping, and you will be tired of Myq uestions here
thanks alot and see yeah
|
|
|
|
|
How can I make my programs Unicode ready?
How do I compile them for Unicode?
What header files do I include?
wWw.KruncherInc.cOm - My cool programs
|
|
|
|
|
Please, look at International Programming Topics in MSDN
|
|
|
|