Click here to Skip to main content
16,015,393 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to minimize the main window and the child windows to remain on the desktop? Pin
julych5-Mar-03 22:30
julych5-Mar-03 22:30 
AnswerRe: How to minimize the main window and the child windows to remain on the desktop? Pin
MAAK5-Mar-03 23:51
MAAK5-Mar-03 23:51 
GeneralExcel automation Pin
Rage5-Mar-03 20:41
professionalRage5-Mar-03 20:41 
GeneralRe: Excel automation Pin
HENDRIK R5-Mar-03 21:07
HENDRIK R5-Mar-03 21:07 
GeneralRe: Excel automation Pin
Rage5-Mar-03 22:14
professionalRage5-Mar-03 22:14 
GeneralRe: Excel automation Pin
HENDRIK R5-Mar-03 22:51
HENDRIK R5-Mar-03 22:51 
GeneralRe: Excel automation Pin
Rage5-Mar-03 23:16
professionalRage5-Mar-03 23:16 
GeneralRe: Excel automation Pin
HENDRIK R6-Mar-03 0:27
HENDRIK R6-Mar-03 0:27 
The property to be set is HorizontalAlignment.
So if you have a pointer to your range, calling

range->SetHorizontalAlignment(COleVariant(xlHAlignCenter));


should work. Without use of MFC or similar, it could be more like

VARIANT var;
var.vt = ???;
var.??? = xlHAlignCenter;
range->set_HorizontalAlignment(var);


But I don't know of what type xlHAlignCenter is, so you should figure that out before setting the Variant parameter.



We are men. We are different. We have only one word for soap. We do not own candles. We have never seen anything of any value in a craft shop. We do not own magazines full of photographs of celebrities with their clothes on. - Steve
GeneralRe: Excel automation Pin
Rage6-Mar-03 0:50
professionalRage6-Mar-03 0:50 
GeneralRe: Excel automation Pin
HENDRIK R6-Mar-03 1:17
HENDRIK R6-Mar-03 1:17 
GeneralRe: Excel automation Pin
Rage6-Mar-03 1:29
professionalRage6-Mar-03 1:29 
GeneralRe: Excel automation Pin
HENDRIK R6-Mar-03 1:48
HENDRIK R6-Mar-03 1:48 
QuestionStacked tabs in a property sheet? Pin
Joan M5-Mar-03 20:35
professionalJoan M5-Mar-03 20:35 
AnswerRe: Stacked tabs in a property sheet? Pin
Ted Ferenc5-Mar-03 21:37
Ted Ferenc5-Mar-03 21:37 
GeneralRe: Stacked tabs in a property sheet? Pin
Joan M6-Mar-03 3:50
professionalJoan M6-Mar-03 3:50 
GeneralClose Port Pin
San5-Mar-03 19:22
San5-Mar-03 19:22 
GeneralRe: Close Port Pin
RobJones6-Mar-03 1:46
RobJones6-Mar-03 1:46 
GeneralResource DLLs / MFC Pin
Jon Sagara5-Mar-03 19:09
Jon Sagara5-Mar-03 19:09 
GeneralRe: Resource DLLs / MFC Pin
Bartosz Bien5-Mar-03 23:57
Bartosz Bien5-Mar-03 23:57 
GeneralRe: Resource DLLs / MFC Pin
Blake Miller7-Mar-03 9:51
Blake Miller7-Mar-03 9:51 
Generaldetecting system shutdown Pin
r i s h a b h s5-Mar-03 17:36
r i s h a b h s5-Mar-03 17:36 
GeneralRe: detecting system shutdown Pin
Michael Dunn5-Mar-03 19:13
sitebuilderMichael Dunn5-Mar-03 19:13 
GeneralRe: detecting system shutdown Pin
r i s h a b h s5-Mar-03 22:49
r i s h a b h s5-Mar-03 22:49 
GeneralCPoint and Popup Menus.. Pin
adonisv5-Mar-03 17:28
adonisv5-Mar-03 17:28 
GeneralRe: CPoint and Popup Menus.. Pin
Dave Bryant5-Mar-03 17:31
Dave Bryant5-Mar-03 17:31 

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.