|
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..."
|
|
|
|
|
I would suggest DirectSound.
Cheers!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
I need to use some functions that uses files. They open file using OpenFile and uses the returned handle in their other functions. I have the data in a memory buffer. I do not want to write that data to HD and then read it again back through that functions.
Is there any way possible by which I can make my memory buffer treated as a file. I mean using the _llseek and other functions but the given handle is something that reads file from memory.
Please help,,,,thanks in advance.
|
|
|
|
|
Check:
FILE,CFile
Mazy
Don't Marry a Person You Can Live With...
Marry Someone You Can Not Live Without
|
|
|
|
|
Can you please clarify. As I mentioned earlier... the data of the file is in memory buffer and i do not want to write it to a file. The functions that I want to use take in file handle of OpenFile.
|
|
|
|
|
MFC has a class CMemFile , derived from CFile , supporting memory files.
--
See me: www.magerquark.de
|
|
|
|
|
If you are not using MFC, then you will be interested in memory mapped files.
1. open your file with CreateFile.
2. Call CreateFileMapping with the handle that you received from CreateFile. You will also need to specify things like the size of the file that you want to read into memory and access that you would like to have to the file.
3. Call MapViewOfFile, this function will return a pointer to you that you can treat exactly like memory.
Depending on the settings that you choose, when you close the file mapping, all of the memory that you have changed will already be written to Disk.
In one of the other responses to your question, CMemFile encapsulates this behavios, but you will have to use MFC.
|
|
|
|
|
i need Tmp = "; but i get an error, is there a way of having Tmp = "
|
|
|
|
|
If I understood you right, Tmp = "\""; is what you're after.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|