|
MSDN
The DECLARE_SERIAL macro is required in the declaration of classes that will support serialization, as shown here:
class CPerson : public CObject
{
DECLARE_SERIAL( CPerson )
};
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
(In VC++ 6) I create a CListCtrl control and want it show a tooltip when user lay the cursor on its each item. So I set the list control style to LVS_EX_TRACKSELECT and define a function to handle the LVN_HOTTRACK notify.
The problem is the program work fine in debug config compile version but got error in release version. The error is come from the LVN_HOTTRACK function. (without it, the program got no error)
Anyone please give me some suggestions.
Thank you.
|
|
|
|
|
Could you please post the code for the LVN_HOTTRACK handler?
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
ON_NOTIFY ( LVN_HOTTRACK, IDC_lstctl_THR, OnHottrackNotify )
...
BOOL CPXP_MainDlg::OnHottrackNotify ( NMLISTVIEW * pNMLV )
{
return (FALSE);
}
(I put only 'return' to test the function, and it comeout fail)
|
|
|
|
|
That routine isn't a notify routine. It doesn't have all the arguments and what arguments it does have are wrong. The proper form is...
afx_msg void memberFxn( NMHDR * pNotifyStruct, LRESULT * result );
Tim Smith
I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?
|
|
|
|
|
you make me smarter
thanks.
|
|
|
|
|
How can I simple change the font style of a CEdit? (Maybe without m_Font?)
I tried following, but doesn't work:
void CMyEdit::OnChange()
{
LOGFONT logFont;
CFont *pFont = GetFont();
if(!pFont->GetLogFont(&logFont))
return;
logFont.lfUnderline = m_bShowUnderlined;
if(!m_Font.CreateFontIndirect(&logFont, NULL))
return;
SetFont(&m_Font);
m_Font.DeleteObject();
}
thx
|
|
|
|
|
m_youredit.SetFont(&font)
of cource you have to create CFont object first.But it is very simple.
Mazy
Don't Marry a Person You Can Live With...
Marry Someone You Can Not Live Without
|
|
|
|
|
First off...Why would you change the font in OnChange...?
Unless your trying to syntax hilite your control or something...even still ownerdraw would probably work better.
If you want your edit control to just display it's text in Italics or something...
Change the font in InitDialog or something...previously your font change would occur every time some one presses a key or the contents change...thats a waste of cpu time.
Cheers!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
This one is driving me nuts. I'm unsure as how to do double buffing with GDI+. I like doing all my drawing in memory then flip it to the screen - with just GDI I could do that with ease. Can someone help me understand this with GDI+ ? How do you switch the two graphics associated with the dc's?
|
|
|
|
|
I have an article about it
Mazy
Don't Marry a Person You Can Live With...
Marry Someone You Can Not Live Without
|
|
|
|
|
Thanks Mazy. It helped me understand it more.
Check this site out when you have a chance. It's about the same thing just a different approach to it. I'm always looking for new information.
http://dogma.net/markn/articles/IPicture/
|
|
|
|
|
i need to search a string for "//password=" and have another string equal what comes after that
so input=gyghgguy gy gyf gfy fy fk u//password=test
pass=test
|
|
|
|
|
If you're using std::string s, then you can call find on input to locate the substring you're looking for (the rest is straightforward).
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
sorry i am not sure how to use std::strings?
|
|
|
|
|
I think you will find it extremely useful to read some book about C++. For instance, Bruce Eckel's Thinking in C++ is very good for starters, plus you can download it for free! There you can learn how to use std::string s and a lot more.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
thanks for all you help i think i will get that book
|
|
|
|
|
|
If you are using the regular C-runtime libary with char* as your string you can use strstr(). This will search for a string inside of a string.
|
|
|
|
|
hello,
Does OLE/COM use SendMessage(----) and other such message functions internally? If not,how does it work?
Crista
|
|
|
|
|
Locally ( on the same machine), COM use message queues only for objects located in STA apartments ( to serialize the access ) - for the other types of objects it use LPC.
|
|
|
|
|
hi,
Where did all the sound functions(API) which were in win3.0 go?
There were functions to GENERATE sounds which I cannot find in VC++6.0.
Where are they?
Laura
|
|
|
|
|
Platform SDK: Windows Multimedia
Multimedia Functions
The following functions are used with multimedia.
acmDriverAdd
acmDriverClose
acmDriverDetails
acmDriverEnum
acmDriverEnumCallback
acmDriverID
acmDriverMessage
acmDriverOpen
acmDriverPriority
acmDriverProc
acmDriverRemove
acmFilterChoose
acmFilterChooseHookProc
acmFilterDetails
acmFilterEnum
acmFilterEnumCallback
acmFilterTagDetails
acmFilterTagEnum
acmFilterTagEnumCallback
acmFormatChoose
acmFormatChooseHookProc
acmFormatDetails
acmFormatEnum
acmFormatEnumCallback
acmFormatSuggest
acmFormatTagDetails
acmFormatTagEnum
acmFormatTagEnumCallback
acmGetVersion
acmMetrics
acmStreamClose
acmStreamConvert
acmStreamConvertCallback
acmStreamMessage
acmStreamOpen
acmStreamPrepareHeader
acmStreamReset
acmStreamSize
acmStreamUnprepareHeader
auxGetDevCaps
auxGetNumDevs
auxGetVolume
auxOutMessage
auxSetVolume
AVIBuildFilter
AVIClearClipboard
AVIFileAddRef
AVIFileCreateStream
AVIFileEndRecord
AVIFileExit
AVIFileGetStream
AVIFileInfo
AVIFileInit
AVIFileOpen
AVIFileReadData
AVIFileRelease
AVIFileWriteData
AVIGetFromClipboard
AVIMakeCompressedStream
AVIMakeFileFromStreams
AVIMakeStreamFromClipboard
AVIPutFileOnClipboard
AVISave
AVISaveOptions
AVISaveOptionsFree
AVISaveV
AVIStreamAddRef
AVIStreamBeginStreaming
AVIStreamCreate
AVIStreamEndStreaming
AVIStreamFindSample
AVIStreamGetFrame
AVIStreamGetFrameClose
AVIStreamGetFrameOpen
AVIStreamInfo
AVIStreamLength
AVIStreamOpenFromFile
AVIStreamRead
AVIStreamReadData
AVIStreamReadFormat
AVIStreamReleaseAVIStreamSampleToTime
AVIStreamSetFormat
AVIStreamStart
AVIStreamTimeToSample
AVIStreamWrite
AVIStreamWriteData
capControlCallback
capCreateCaptureWindow
capErrorCallback
capGetDriverDescription
capStatusCallback
capVideoStreamCallback
capWaveStreamCallback
capYieldCallback
CreateEditableStream
DllGetClassObject
DrawDibBegin
DrawDibChangePalette
DrawDibClose
DrawDibDraw
DrawDibEnd
DrawDibGetBuffer
DrawDibGetPalette
DrawDibOpen
DrawDibProfileDisplay
DrawDibRealize
DrawDibSetPalette
DrawDibStart
DrawDibStop
DrawDibTime
EditStreamClone
EditStreamCopy
EditStreamCut
EditStreamPaste
EditStreamSetInfo
EditStreamSetName
GetOpenFileNamePreview
GetSaveFileNamePreview
ICClose
ICCompress
ICCompressorChoose
ICCompressorFree
ICDecompress
ICDecompressEx
ICDecompressExBegin
ICDecompressExQuery
ICDraw
ICDrawBegin
ICDrawSuggestFormat
ICGetDisplayFormat
ICGetInfo
ICImageCompress
ICImageDecompress
ICInfo
ICInstall
ICLocate
ICOpen
ICOpenFunction
ICRemove
ICSendMessage
ICSeqCompressFrame
ICSeqCompressFrameEnd
ICSeqCompressFrameStart
ICSetStatusProc
IOProc
joyGetDevCaps
joyGetNumDevs
joyGetPos
joyGetPosEx
joyGetThreshold
joyReleaseCapture
joySetCapture
joySetThreshold
mciGetCreatorTask
mciGetDeviceID
mciGetErrorString
mciGetYieldProc
mciSendCommand
mciSendString
mciSetYieldProc
MCIWndCreate
MCIWndRegisterClass
midiConnect
midiDisconnect
midiInAddBuffer
midiInClose
midiInGetDevCaps
midiInGetErrorText
midiInGetID
midiInGetNumDevs
midiInMessage
midiInOpen
midiInPrepareHeader
midiInProc
midiInReset
midiInStart
midiInStop
midiInUnprepareHeader
midiOutCacheDrumPatches
midiOutCachePatches
midiOutClose
midiOutGetDevCaps
midiOutGetErrorText
midiOutGetID
midiOutGetNumDevs
midiOutGetVolume
midiOutLongMsg
midiOutMessage
midiOutOpen
midiOutPrepareHeader
MidiOutProc
midiOutReset
midiOutSetVolume
midiOutShortMsg
midiOutUnprepareHeader
midiStreamClose
midiStreamOpen
midiStreamOut
midiStreamPause
midiStreamPosition
midiStreamProperty
midiStreamRestart
midiStreamStop
mixerClose
mixerGetControlDetails
mixerGetDevCaps
mixerGetID
mixerGetLineControls
mixerGetLineInfo
mixerGetNumDevs
mixerMessage
mixerOpen
mixerSetControlDetails
mmioAdvance
mmioAscend
mmioClose
mmioCreateChunk
mmioDescend
mmioFlush
mmioGetInfo
mmioInstallIOProc
mmioOpen
MMIOProc
mmioRead
mmioRename
mmioSeek
mmioSendMessage
mmioSetBuffer
mmioSetInfo
mmioStringToFOURCC
mmioWrite
MyStatusProc
PlaySound
sndPlaySound
timeBeginPeriod
timeEndPeriod
timeGetDevCaps
timeGetSystemTime
timeGetTime
timeKillEvent
TimeProc
timeSetEvent
waveInAddBuffer
waveInClose
waveInGetDevCaps
waveInGetErrorText
waveInGetID
waveInGetNumDevs
waveInGetPosition
waveInMessage
waveInOpen
waveInPrepareHeader
waveInProc
waveInReset
waveInStart
waveInStop
waveInUnprepareHeader
waveOutBreakLoop
waveOutClose
waveOutGetDevCaps
waveOutGetErrorText
waveOutGetID
waveOutGetNumDevs
waveOutGetPitch
waveOutGetPlaybackRate
waveOutGetPosition
waveOutGetVolume
waveOutMessage
waveOutOpen
waveOutPause
waveOutPrepareHeader
waveOutProc
waveOutReset
waveOutRestart
waveOutSetPitch
waveOutSetPlaybackRate
waveOutSetVolume
waveOutUnprepareHeader
waveOutWrite
Normski. - Professional Windows Programmer
|
|
|
|
|
hi,
so ,are they available with VC++6.0?
|
|
|
|
|
I think you will need to download the Platform SDK first for at least some of them. Anyway, the PSDK is a really nice thing to have
Get it at the PSDK Update Site: http://www.microsoft.com/msdownload/platformsdk/sdkupdate
And to answer the original question, this should work with VC++ 6 once you have the PSDK
Have fun!
-Domenic Denicola-
Geek^n
http://madhamster.50megs.com
"Any technology that is indistinguishable from magic is insufficiently advanced..."
|
|
|
|