Skip to content

Commit 7706b78

Browse files
author
Michael Blome
committed
more code block fixes in mfc
1 parent 3824a71 commit 7706b78

10 files changed

+72
-159
lines changed

docs/mfc/reference/canimationcolor-class.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ void AddTransition(
126126

127127
```
128128
CAnimationColor();
129-
130129
131130
CAnimationColor(
132131
COLORREF color,
@@ -155,9 +154,7 @@ CAnimationColor(
155154
Puts the encapsulated animation variables into a list.
156155

157156
```
158-
virtual void GetAnimationVariableList(
159-
CList<CAnimationVariable*,
160-
CAnimationVariable*>& lst);
157+
virtual void GetAnimationVariableList(CList<CAnimationVariable*>& lst);
161158
```
162159

163160
### Parameters

docs/mfc/reference/canimationgroup-class.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,7 @@ class CAnimationGroup;
112112
A helper that adds keyframes to a storyboard.
113113

114114
```
115-
void AddKeyframes(
116-
IUIAnimationStoryboard* pStoryboard,
117-
BOOL bAddDeep);
115+
void AddKeyframes(IUIAnimationStoryboard* pStoryboard, BOOL bAddDeep);
118116
```
119117

120118
### Parameters
@@ -174,9 +172,7 @@ void ApplyTransitions();
174172
Constructs an animation group.
175173

176174
```
177-
CAnimationGroup(
178-
CAnimationController* pParentController,
179-
UINT32 nGroupID);
175+
CAnimationGroup(CAnimationController* pParentController, UINT32 nGroupID);
180176
```
181177

182178
### Parameters
@@ -214,9 +210,7 @@ CAnimationBaseObject* FindAnimationObject(IUIAnimationVariable* pVariable);
214210
Returns GroupID.
215211

216212
```
217-
UINT32 GetGroupID() const;
218-
219-
213+
UINT32 GetGroupID() const;
220214
```
221215

222216
### Return Value
@@ -302,9 +296,7 @@ void RemoveTransitions();
302296
Schedules an animation at the specified time.
303297

304298
```
305-
BOOL Schedule(
306-
IUIAnimationTimer* pTimer,
307-
UI_ANIMATION_SECONDS time);
299+
BOOL Schedule(IUIAnimationTimer* pTimer, UI_ANIMATION_SECONDS time);
308300
```
309301

310302
### Parameters

docs/mfc/reference/canimationpoint-class.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,7 @@ CAnimationPoint(
149149
Puts the encapsulated animation variables into a list.
150150

151151
```
152-
virtual void GetAnimationVariableList(
153-
CList<CAnimationVariable*,
154-
CAnimationVariable*>& lst);
152+
virtual void GetAnimationVariableList(CList<CAnimationVariable*, CAnimationVariable*>& lst);
155153
```
156154

157155
### Parameters

docs/mfc/reference/canimationstoryboardeventhandler-class.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ static COM_DECLSPEC_NOTHROW HRESULT CreateInstance(
103103
Handles OnStoryboardStatusChanged events, which occur when a storyboard's status changes
104104

105105
```
106-
IFACEMETHOD(
107-
OnStoryboardStatusChanged) (__in IUIAnimationStoryboard* storyboard,
106+
IFACEMETHOD(OnStoryboardStatusChanged) (
107+
__in IUIAnimationStoryboard* storyboard,
108108
__in UI_ANIMATION_STORYBOARD_STATUS newStatus,
109109
__in UI_ANIMATION_STORYBOARD_STATUS previousStatus);
110110
```

docs/mfc/reference/carray-class.md

Lines changed: 12 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ Supports arrays that are like C arrays, but can dynamically reduce and grow as n
4444

4545
```
4646
template <class TYPE, class ARG_TYPE = const TYPE&>
47-
class CArray :
48-
public CObject
47+
class CArray : public CObject
4948
```
5049

5150
#### Parameters
@@ -199,12 +198,8 @@ void Copy(const CArray& src);
199198
Returns a temporary reference to the specified element within the array.
200199

201200
```
202-
TYPE& ElementAt(INT_PTR nIndex);
203-
204-
205-
const TYPE& ElementAt(INT_PTR nIndex) const;
206-
207-
201+
TYPE& ElementAt(INT_PTR nIndex);
202+
const TYPE& ElementAt(INT_PTR nIndex) const;
208203
```
209204

210205
### Parameters
@@ -237,12 +232,8 @@ void FreeExtra();
237232
Returns the array element at the specified index.
238233

239234
```
240-
TYPE& GetAt(INT_PTR nIndex);
241-
242-
243-
const TYPE& GetAt(INT_PTR nIndex) const;
244-
245-
235+
TYPE& GetAt(INT_PTR nIndex);
236+
const TYPE& GetAt(INT_PTR nIndex) const;
246237
```
247238

248239
### Parameters
@@ -265,9 +256,7 @@ const TYPE& GetAt(INT_PTR nIndex) const;
265256
Returns the number of array elements.
266257

267258
```
268-
INT_PTR GetCount() const;
269-
270-
259+
INT_PTR GetCount() const;
271260
```
272261

273262
### Return Value
@@ -283,10 +272,7 @@ INT_PTR GetCount() const;
283272
Use this member function to gain direct access to the elements in an array.
284273

285274
```
286-
const TYPE* GetData() const;
287-
288-
289-
275+
const TYPE* GetData() const;
290276
TYPE* GetData();
291277
```
292278

@@ -309,9 +295,7 @@ TYPE* GetData();
309295
Returns the size of the array.
310296

311297
```
312-
INT_PTR GetSize() const;
313-
314-
298+
INT_PTR GetSize() const;
315299
```
316300

317301
### Remarks
@@ -324,9 +308,7 @@ INT_PTR GetSize() const;
324308
Returns the current upper bound of this array.
325309

326310
```
327-
INT_PTR GetUpperBound() const;
328-
329-
311+
INT_PTR GetUpperBound() const;
330312
```
331313

332314
### Remarks
@@ -345,7 +327,6 @@ void InsertAt(
345327
INT_PTR nIndex,
346328
ARG_TYPE newElement,
347329
INT_PTR nCount = 1);
348-
349330
350331
void InsertAt(
351332
INT_PTR nStartIndex,
@@ -385,9 +366,7 @@ void InsertAt(
385366
Determines whether the array is empty.
386367

387368
```
388-
BOOL IsEmpty() const;
389-
390-
369+
BOOL IsEmpty() const;
391370
```
392371

393372
### Return Value
@@ -397,12 +376,8 @@ BOOL IsEmpty() const;
397376
These subscript operators are a convenient substitute for the [SetAt](#carray__setat) and [GetAt](#carray__getat) functions.
398377

399378
```
400-
TYPE& operator[](int_ptr nindex);
401-
402-
403-
const TYPE& operator[](int_ptr nindex) const;
404-
405-
379+
TYPE& operator[](int_ptr nindex);
380+
const TYPE& operator[](int_ptr nindex) const;
406381
```
407382

408383
### Parameters

docs/mfc/reference/casyncmonikerfile-class.md

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,7 @@ virtual IUnknown* CreateBindStatusCallback(IUnknown* pUnkControlling);
152152
Called from the client of an asynchronous moniker to tell the asynchronous moniker how it wants to bind.
153153

154154
```
155-
virtual DWORD GetBindInfo() const;
156-
157-
155+
virtual DWORD GetBindInfo() const;
158156
```
159157

160158
### Return Value
@@ -169,9 +167,7 @@ virtual DWORD GetBindInfo() const;
169167
Call this function to retrieve a pointer to the asynchronous transfer binding.
170168

171169
```
172-
IBinding* GetBinding() const;
173-
174-
170+
IBinding* GetBinding() const;
175171
```
176172

177173
### Return Value
@@ -186,9 +182,7 @@ IBinding* GetBinding() const;
186182
Call this function to retrieve the format of the data in the stream.
187183

188184
```
189-
FORMATETC* GetFormatEtc() const;
190-
191-
185+
FORMATETC* GetFormatEtc() const;
192186
```
193187

194188
### Return Value
@@ -213,9 +207,7 @@ virtual LONG GetPriority() const;
213207
An asynchronous moniker calls `OnDataAvailable` to provide data to the client as it becomes available, during asynchronous bind operations.
214208

215209
```
216-
virtual void OnDataAvailable(
217-
DWORD dwSize,
218-
DWORD bscfFlag);
210+
virtual void OnDataAvailable(DWORD dwSize, DWORD bscfFlag);
219211
```
220212

221213
### Parameters
@@ -315,8 +307,7 @@ virtual void OnStartBinding();
315307
Called by the moniker at the end of the bind operation.
316308

317309
```
318-
virtual void OnStopBinding(
319-
HRESULT hresult, LPCTSTR szError);
310+
virtual void OnStopBinding(HRESULT hresult, LPCTSTR szError);
320311
```
321312

322313
### Parameters
@@ -338,42 +329,35 @@ virtual void OnStopBinding(
338329
virtual BOOL Open(
339330
LPCTSTR lpszURL,
340331
CFileException* pError = NULL);
341-
342332
343333
virtual BOOL Open(
344334
IMoniker* pMoniker,
345335
CFileException* pError = NULL);
346-
347336
348337
virtual BOOL Open(
349338
LPCTSTR lpszURL,
350339
IBindHost* pBindHost,
351340
CFileException* pError = NULL);
352-
353341
354342
virtual BOOL Open(
355343
IMoniker* pMoniker,
356344
IBindHost* pBindHost,
357345
CFileException* pError = NULL);
358-
359346
360347
virtual BOOL Open(
361348
LPCTSTR lpszURL,
362349
IServiceProvider* pServiceProvider,
363350
CFileException* pError = NULL);
364-
365351
366352
virtual BOOL Open(
367353
IMoniker* pMoniker,
368354
IServiceProvider* pServiceProvider,
369355
CFileException* pError = NULL);
370-
371356
372357
virtual BOOL Open(
373358
LPCTSTR lpszURL,
374359
IUnknown* pUnknown,
375360
CFileException* pError = NULL);
376-
377361
378362
virtual BOOL Open(
379363
IMoniker* pMoniker,

docs/mfc/reference/cdrawingmanager-class.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class CDrawingManager : public CObject
8888
## Inheritance Hierarchy
8989
[CObject](../../mfc/reference/cobject-class.md)
9090

91-
   [CDrawingManager](../../mfc/reference/cdrawingmanager-class.md)
91+
[CDrawingManager](../../mfc/reference/cdrawingmanager-class.md)
9292

9393
## Requirements
9494
**Header:** afxdrawmanager.h
@@ -111,7 +111,6 @@ CDrawingManager(CDC& dc);
111111
static HBITMAP __stdcall CreateBitmap_32(
112112
const CSize& size,
113113
void** pBits);
114-
115114
116115
static HBITMAP __stdcall CreateBitmap_32(
117116
HBITMAP bitmap,
@@ -236,7 +235,6 @@ void DrawLine(
236235
int x2,
237236
int y2,
238237
COLORREF clrLine);
239-
240238
241239
void DrawLineA(
242240
double x1,
@@ -672,15 +670,13 @@ void MirrorRect(
672670
static COLORREF __stdcall PixelAlpha(
673671
COLORREF srcPixel,
674672
int percent);
675-
676673
677674
static COLORREF __stdcall PixelAlpha(
678675
COLORREF srcPixel,
679676
double percentR,
680677
double percentG,
681678
double percentB);
682679
683-
684680
static COLORREF __stdcall PixelAlpha(
685681
COLORREF srcPixel,
686682
COLORREF dstPixel,

0 commit comments

Comments
 (0)