Click here to Skip to main content
15,896,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCalculating window size based on bitmap and titlebar/border? Pin
Kayembi4-Oct-03 15:53
Kayembi4-Oct-03 15:53 
AnswerRe: Calculating window size based on bitmap and titlebar/border? Pin
Michael Dunn4-Oct-03 16:53
sitebuilderMichael Dunn4-Oct-03 16:53 
GeneralRe: Calculating window size based on bitmap and titlebar/border? Pin
PJ Arends4-Oct-03 16:57
professionalPJ Arends4-Oct-03 16:57 
GeneralRe: Calculating window size based on bitmap and titlebar/border? Pin
Michael Dunn4-Oct-03 17:08
sitebuilderMichael Dunn4-Oct-03 17:08 
GeneralRe: Calculating window size based on bitmap and titlebar/border? Pin
Kayembi5-Oct-03 3:43
Kayembi5-Oct-03 3:43 
AnswerRe: Calculating window size based on bitmap and titlebar/border? Pin
PJ Arends4-Oct-03 16:55
professionalPJ Arends4-Oct-03 16:55 
GeneralRe: Calculating window size based on bitmap and titlebar/border? Pin
J. Dunlap4-Oct-03 16:57
J. Dunlap4-Oct-03 16:57 
GeneralRegistry code refuses to work for no reason, help! Pin
Steven M Hunt4-Oct-03 14:22
Steven M Hunt4-Oct-03 14:22 
What's wrong with my code? the first queried value works but the second one does not. What's the problem?

char Desktop[500];
char Programs[500];
char CurDirectory[500];

GetCurrentDirectory(1000, CurDirectory);

HKEY hKey;
DWORD dwBufLen1, dwBufLen2;

if (RegOpenKeyEx(HKEY_CURRENT_USER, "Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders", 0, KEY_QUERY_VALUE, &hKey) == ERROR_SUCCESS)
{
RegQueryValueEx(hKey, "Desktop", NULL, NULL, (LPBYTE) Desktop, &dwBufLen1);
RegQueryValueEx(hKey, "Programs", NULL, NULL, (LPBYTE) Programs, &dwBufLen2);//doesn't work!
}
RegCloseKey(hKey);

-- Steve
GeneralRe: Registry code refuses to work for no reason, help! Pin
Michael Dunn4-Oct-03 16:56
sitebuilderMichael Dunn4-Oct-03 16:56 
QuestionKazaa searchresult ctrl?? Pin
Stefan Dahlin4-Oct-03 14:04
Stefan Dahlin4-Oct-03 14:04 
GeneralNetwork interface Pin
Florin Ochiana4-Oct-03 12:17
Florin Ochiana4-Oct-03 12:17 
GeneralRe: Network interface Pin
Max Santos5-Oct-03 5:12
Max Santos5-Oct-03 5:12 
GeneralPRINTING -VC++ Pin
radha vijay4-Oct-03 9:11
radha vijay4-Oct-03 9:11 
GeneralRe: PRINTING -VC++ Pin
LunaticFringe4-Oct-03 22:26
LunaticFringe4-Oct-03 22:26 
GeneralRe: PRINTING -VC++ Pin
radha vijay6-Oct-03 14:18
radha vijay6-Oct-03 14:18 
GeneralKey accelerators Pin
BoudewijnEctor4-Oct-03 5:53
BoudewijnEctor4-Oct-03 5:53 
GeneralRe: Key accelerators Pin
Mike Dimmick4-Oct-03 7:48
Mike Dimmick4-Oct-03 7:48 
GeneralTimers in MFC Pin
BoudewijnEctor4-Oct-03 5:41
BoudewijnEctor4-Oct-03 5:41 
GeneralRe: Timers in MFC Pin
NewHSKid4-Oct-03 5:46
NewHSKid4-Oct-03 5:46 
GeneralRe: Timers in MFC Pin
Mike Dimmick4-Oct-03 7:50
Mike Dimmick4-Oct-03 7:50 
GeneralRe: Timers in MFC Pin
Michael Dunn4-Oct-03 6:28
sitebuilderMichael Dunn4-Oct-03 6:28 
GeneralRe: Timers in MFC Pin
Ted Ferenc4-Oct-03 7:41
Ted Ferenc4-Oct-03 7:41 
GeneralRe: Timers in MFC Pin
BoudewijnEctor4-Oct-03 9:15
BoudewijnEctor4-Oct-03 9:15 
GeneralChecking to see if filename entered Pin
NewHSKid4-Oct-03 5:33
NewHSKid4-Oct-03 5:33 
GeneralRe: Checking to see if filename entered Pin
Terry O'Nolley4-Oct-03 6:26
Terry O'Nolley4-Oct-03 6:26 

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.