Click here to Skip to main content
15,911,848 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralWCHAR to STL string Pin
pankajdaga11-Sep-03 2:18
pankajdaga11-Sep-03 2:18 
GeneralRe: WCHAR to STL string Pin
Taka Muraoka11-Sep-03 3:05
Taka Muraoka11-Sep-03 3:05 
GeneralRe: WCHAR to STL string Pin
Michael Dunn11-Sep-03 6:31
sitebuilderMichael Dunn11-Sep-03 6:31 
Generalmultiple undo/redo Pin
Jerome Conus11-Sep-03 2:08
Jerome Conus11-Sep-03 2:08 
GeneralRe: multiple undo/redo Pin
PengFeidu11-Sep-03 2:31
PengFeidu11-Sep-03 2:31 
GeneralRe: multiple undo/redo Pin
Maximilien11-Sep-03 2:51
Maximilien11-Sep-03 2:51 
GeneralRe: multiple undo/redo Pin
Jagadeesh VN11-Sep-03 4:34
Jagadeesh VN11-Sep-03 4:34 
Generalproblems to get all kinds of refreshrates of a resolution Pin
selfk11-Sep-03 1:19
selfk11-Sep-03 1:19 
when i want to get same refreshrates(display frequency) with the windows function EnumDisplaySettings. i got as a result a 0.(this means default rate)

ende=EnumDisplaySettings(NULL,index,&devmode);

i have the equal result, when i want to get the refreshrate with directx7 function IDirectDraw7->EnumDisplayModes(..) with the EnumModesCallback2 function.

hret = dlg.lpDD->EnumDisplayModes( 0, NULL, NULL, EnumModesCallback2);

HRESULT WINAPI EnumModesCallback2( LPDDSURFACEDESC2 pddsd, LPVOID pContext)<br />
{<br />
	if(global_pdm->modecount<256){<br />
		global_pdm->modes[global_pdm->modecount].cx=pddsd->dwWidth;<br />
		global_pdm->modes[global_pdm->modecount].cy=pddsd->dwHeight;<br />
		global_pdm->colorbits[global_pdm->modecount]=pddsd->ddpfPixelFormat.dwRGBBitCount;<br />
		global_pdm->refreshrate[global_pdm->modecount]=pddsd->dwRefreshRate;<br />
		global_pdm->modecount++;<br />
	}<br />
	return TRUE;<br />
}


in all modes the refreshrate are 0.(0 == default refreshrate)

is everybody here to tell me!! how can i get a list of all kinds of refreshrates of a resolution(sample: 1024x768)??

i have one idee!! in the registry i have found modes with refreshrates.
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Class\Display\0000\MODES]
maybe i can read this !?! but the refreshrate is a value there are from graphic card and monitor !!

please help me !!
and thanx ahead !!
GeneralRe: happy mid-autumn festival for everyone Pin
Taka Muraoka11-Sep-03 1:23
Taka Muraoka11-Sep-03 1:23 
GeneralRe: happy mid-autumn festival for everyone Pin
PengFeidu11-Sep-03 1:34
PengFeidu11-Sep-03 1:34 
Questionis is posible to store GIF as resource? Pin
vgrigor11-Sep-03 0:58
vgrigor11-Sep-03 0:58 
AnswerRe: is is posible to store GIF as resource? Pin
Dangleberry11-Sep-03 1:18
sussDangleberry11-Sep-03 1:18 
AnswerRe: is is posible to store GIF as resource? Pin
PengFeidu11-Sep-03 1:21
PengFeidu11-Sep-03 1:21 
GeneralRe: is is posible to store GIF as resource? Pin
vgrigor11-Sep-03 1:30
vgrigor11-Sep-03 1:30 
GeneralRe: is is posible to store GIF as resource? Pin
PengFeidu11-Sep-03 1:41
PengFeidu11-Sep-03 1:41 
GeneralRe: is is posible to store GIF as resource? Pin
vgrigor11-Sep-03 1:47
vgrigor11-Sep-03 1:47 
GeneralRe: is is posible to store GIF as resource? Pin
PengFeidu11-Sep-03 2:01
PengFeidu11-Sep-03 2:01 
GeneralRe: is is posible to store GIF as resource? Pin
Dangleberry11-Sep-03 2:45
sussDangleberry11-Sep-03 2:45 
GeneralRe: is is posible to store GIF as resource? Pin
JWood11-Sep-03 14:24
JWood11-Sep-03 14:24 
QuestionHow correctly Deactivate IPictureDisp* based control ? Pin
vgrigor11-Sep-03 0:40
vgrigor11-Sep-03 0:40 
GeneralRGB <--> YUV Pin
Pawel Olszewski11-Sep-03 0:29
Pawel Olszewski11-Sep-03 0:29 
GeneralRe: RGB &lt;--&gt; YUV Pin
selfk11-Sep-03 1:27
selfk11-Sep-03 1:27 
GeneralRe: RGB &lt;--&gt; YUV Pin
Pawel Olszewski11-Sep-03 2:28
Pawel Olszewski11-Sep-03 2:28 
GeneralQues related to snmp Pin
SatyaDY11-Sep-03 0:19
SatyaDY11-Sep-03 0:19 
QuestionHow to put an icon in .ico file on a toolbar button? Pin
gumber11-Sep-03 0:05
gumber11-Sep-03 0:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.